Xamarin forms Maps from intent - xamarin.forms

How to receive Location from native Maps app into my Xamarin forms application. and when my application is opened it should open Xamarin.Forms.Maps on the specific location.
Suppose the user of my app received the location from client on whats app. He/She will open the location in Native app and from there when he chooses share, my app should appear in the list. When he/She chooses my app the the map should open and add a pin on that specific location.

If you mean receiving data from other apps to your app, you can use Share Extension to achieve that.
iOS: Understand Share Extensions
Android: Receiving simple data from other apps
Generally, when sharing data between map apps, we will open a map app manually.
According to the current technical solution, there are two main ways to open another application.
One is to integrate the SDK that needs to open the application.
Another is using the URL Scheme.
Both of them can not be detected automatically and then open the another appilcation. Every third party Map apps all expose their url scheme or SDK to developers. It seems like our app can detect the other map apps automaticall. Actually the developers has defined the supported other map apps. However, we can detect the defined map apps whether installed in device. If installed, the shared menu will show it, else not.
About URL Scheme, iOS and Android has their ways to achieve that.More info can refer to each of their official document.
iOS: Defining a Custom URL Scheme for Your App
Android: Interacting with Other Apps

Related

Set app as default launcher Programmatically

we have an app that is used by providers for TV. We do not have Operator tier yet since there requirements are really high..
The issue we have is we use a commercial Android Tv box provider and they have a similar panel(like tier) for us to manage the device like remote buttons..
In order to facilitate the user experience we need to enable the app as a laucher for Home button to load our application.
But to get to that, we need to enable developer mode and then debug... A big process for common users to manage if they factory reset there boxes..
Also we do not want that dialog to show all the time that asks if we want this application to be set as default laucher..
Is there a way with android 10 and up to have our app as a default laucher?Without playing arround with ADB and developer settings?
Thx!

Possible to have two apps respond to the the same base URL using Firebase

I currently have a scenario where I have app A and a sister app called app B. I would like to have app A and app B respond to a Firebase dynamic link and be able to either app A or app B opened depending on which app the user has on their phone.
Is it possible to achieve this in Firebase. So if I have www.mydomain.com/data/myData. If person A has app A on their phone, the when person A presses www.mydomain.com/data/myData, the app A opens. But if person B who has app B installed on their phone press www.mydomain.com/data/myData then app B opens. Is this possible at all on FireBase?
Ultimately what I'm trying to do is have two apps be able to acquire information from say a URL like, www.mydomain.com/data/myData and use myData as needed in each separate app.
Think of it as two apps "sharing" data between each other.
From an iOS perspective, based on this tutorial and this response from branch on SO, clearly this is possible but does Firebase cater for an app being able to respond to two custom URLs.
Disclaimer: I haven't actually tested this all the way through.
This should be possible with Dynamic Links. When you visit the Overview section of the Firebase console, you have the option to add multiple apps to a Firebase single project. Both apps are correctly inserted into the apple-app-site-association file, which means every Dynamic Link in that Firebase project will be a Universal Link that should correctly triggers either app.
There are a couple caveats to be aware of:
Behavior if both apps are installed on a device is undefined.
For obvious reasons, you have to pick just one of the App Store pages as the app-not-installed fallback location. A workaround for this could be sending the user to a non-store page.

Meteor mobile build vs having a phonegap browser

Why is the difference between using a simple phonegap browser app pointed at your site vs using meteor's mobile build options?
a simple phonegap browser app pointed at your site
Not sure exactly why you would be ready to use this option, compared to a simple shortcut / link to your site, or even an "installable" Web App.
Anyway, since you point at your site, it means you require an Internet connection whenever you open your app, and you are limited by what a website can access to on your device.
meteor's mobile build options
It becomes similar to a native app (it is actually called a "hybrid" app), so you can use it totally offline, and you can access more device functionalities (file system, notifications, etc.).
Nothing really specific to Meteor here, it is rather why using a hybrid app v.s. a shortcut.
In the end, you should base your decision on your requirements:
Do you need to access your app while offline?
Is your app primary functionality accessing "real time" content that makes no sense using your app while offline? (like news, forums, etc.)
Do you need to access specific device functionalities, that are not accessible by a normal website?
You should have plenty resources on that topic on the Internet.
Your question might rather be: what is the difference between a standard hybrid app (typically built through Cordova / Phonegap) and one built through Meteor?
In that case, you are asking what Meteor brings specifically? (as it uses Cordova under the hood to build the app)
First of all, you have all advantages of Meteor framework for normal website (minimongo, isomorphic methods, etc.)
You also have by default the Hot Code Push functionality. You can also set it up on your Cordova / Phonegap app, but you will have to configure it yourself, whereas Meteor does everything for you.
Finally, you might benefit from Meteor packages that bring Cordova plugin + client code + server code, something unique to Meteor as it is a full-stack framework.

Firebase dynamic links in UWP

So Firebase has these Dynamic links, which if you click in your Android / iPhone you get redirected to your app instead of the website. So when you want to invite your friends to join you in the app (game, group chat or whatever) you just share this link with them.
I was wondering if this was achievable with UWP. I watched a video about project Rome where they talk about AppUriHandlers which seem to do the job. HOWEVER they require you to have a json file at your web server root which would identify your app, saying "yea, this app is allowed and me are associated, open this app when someone launches this link".
The problem with that is that the Firebase dynamic link points to a google endpoint, e.g. https://aaxy2.app.goo.gl/?link=redirect_here and naturely there is going to be no json file just sitting there.
Is there some other way how to have users redirected to my app just via a link (it needs to be an http link because that's what the Android and iOS versions of the app will be using).
It's not going to be possible; for this exact reason. To ensure that web links aren't hijacked by third parties (for potentially malicious reasons), only the owner of a domain (or more accurately: the person/people with access to the storage where the domains points) can "approve" an app.
Update:
After actually doing my job and properly reading your question, I can give you a correct answer; sorry :/
Linking to UWP apps will work similarly to how it's described for iOS apps in the first section here:
You can do the iOS 8 way and support a uri scheme as described in the Windows docs here.
With the Anniversary Update you can also support AppUriHandlers by directing your users to a web link that will launch your app instead (as described in the Dynamic Links docs for iOS 9).
It looks like, however, that you need to register an iOS or Android app to get going, so that might give you some trouble.

How can i convert my google analytics web app into mobile app?

I have a mobile apps that i applied my google analytics track IDs but when i create the google analytics app profiles i initially choose web app instead of mobile app. while exploring around the settings, I could not find a switch to convert it into mobile app. I have more than 10 app with different google analytics track id, so i don't think creating new profile is great solution, there might be switch to change it to mobile app.
Someone out there might have encounter this situation. please help.
Solution:
What i did to solved this was create a new App, same name with the web one, then set it to mobile and then delete the web app.
The accepted answer is actually the incorrect. Specially if you have a existing web profile which as lots of historical data. Here is how to solve this by keeping your existing web property.
You add a profile view on your existing Web Property which can be a Mobile Ap Profile. https://support.google.com/analytics/answer/1009714?hl=en
The big clue came from this Upgrade to Universal Analytics post https://developers.google.com/analytics/devguides/collection/upgrade/reference/mobile-sdk
"To get access to new app reports and features, you will need to upgrade to v2.x or higher of the SDK and create at least one app view (profile) in your reports to view the data. Any new data sent from your app will only be available in this new app view (profile), while your old data will continue to be available in the original web view (profile). Learn more about the latest version of the SDK for Android or iOS."
There is currently no way to change the type of tracking after the profile is created. You will have to create new profile IDs and update the apps.

Resources