Android Deep Link Web Fallback - android

I've enabled Deep Linking and also created the association.json in the .well-known Folder.
When clicking on a URL the App opens the related content.
I've a button in my App to open the Content in a Web Browser. But opening the link again with a VIEW intent it opens again the App.
I saw that I could try to set the com.android.chrome Package in the Intent, but this is not a clean solutions because some Android users may use an alternative Browser.
How can I do this correctly?

I assume it works fine for you with other browsers.
Google has modified the way chrome browser handles intent, in Android 25 or later. It is no longer possible to launch an Android app by setting an iframe's src attribute.
Checkout following link:
https://developer.chrome.com/multidevice/android/intents

Related

Deep linking not working in chrome mobile browser

I am facing issue of deeplink. We have created a deep link for mobile application post but at google chrome mobile browser, its not opening the app screen. I saw same issues with amazon app deep links also.
At very first load it did not open app but second time it open app
Also make sure that you are tapping on the link. The chrome developers consider everything entered into the browser as user intention to open it in the browser.
So if you enter your link that you wish to deep link into your app in the chrome browser - it will open in the browser. But if you copy/paste it e.g. in notes app (social media etc.) and then tap on it - it will open your application if you have properly configured deep / app links.
I also got the same issue and I found a really good article regarding chrome browser with a deep link. (https://developer.chrome.com/docs/multidevice/android/intents/)
I first try out it with a fallback URL and the google chrome mobile browser doesn't work
Take a QR code
But when I removed that fallback URL, it was redirected to the google play store as intended
Take a QR code

Issue with React native deep linking

I followed all the steps from both the articles mentioned below
https://hackernoon.com/react-native-deep-linking-for-ios-and-android-d33abfba7ef3
https://medium.com/react-native-training/deep-linking-your-react-native-app-d87c39a1ad5e
After the app gets installed on my phone, I tried opening the app from the browser by giving the URL as peopleapp://people/1 format. Instead of opening the app, the browser opens Google search to search for the above.
Any idea, how to solve this issue ?
Please note that I am using Android
Your issue is caused by the fact the deeplinks work differently on iOS and Android.
It is true that on iOS you can open a deeplink by typing the link into the browser and it will cause the app to open.
However, for Android to open a deeplink you need to one of three things as it will not open from typing the link into the browser.
Edit Configurations
The first method is picked exactly from the second tutorial that you mentioned. This is to use the Edit Configurations options in Android Studio.
That is all we need as far as configuration goes. To test this out, open Android Studio. Open Run -> Edit Configurations and change the launch options to URL, passing in the following url: peopleapp://people/1
Use a Weblink
The second option is to it from a URL that is embeded in a webpage. The URL should be embeded in an a tag using a href in the following way
click me
You then browse to the webpage and click the link. That should open the deeplink.
Deeplink Application
You can use a third party application from the play store that will allow you to open the deeplink. There are many to choose from. You can always give https://play.google.com/store/apps/details?id=com.manoj.dlt&hl=en_US a try it seems to have good reviews.

Firebase Dynamic Link when typed into Android Address Bar

As you can see here, i want to change the behavior of my Firebase Dynamic Link when it is typed into the Android Browser, because right now it redirects me to the PlayStore instead of Deep Linking into the app. How can i achieve such behavior?
While creating dynamic link you need to specify either you want to open any specific URL in browser or you need to open your app.
If you need to open your app when dynamic link gets clicked then at the time of creating new dynamic link you need to choose your app from drop down list instead of giving url.
If the app is installed already it will open it otherwise redirect you towards playstore.
For opening app from deep link you need to write code into your activity that can handle the coming deep link.
Chrome doesn't open the deep links some time due to wontfix bug in Chrome 40+.
Mentioned in link for detail.
Same is the case with Firebox and other browsers.
firefox broswer issue
Related Problem

How to open android TeamViewer QuickSupport with Chrome intents (deep link) or any other way from a browser

We are trying to get TeamViewer QuickSupport app to open on an android device using a deep link in a web page. Referring to android Chrome documentation we tried using this link:
intent:#Intent;scheme=http;package=com.teamviewer.quicksupport.market;end
in
Open support
But this opens google Play Store and redirects to TeamViewer QuickSupport (not a bad thing, but not what we are looking for) even if the app is installed. I know that I can open the app with that package name since I can open it in one of our native android apps.
Does anybody know if TeamViewer supports this or is there any other way to open an app on android using a web page? Nothing special needs to be done here, just open the main view of an app.
I tested this url and worked in my vue.js app. It directly opens the app if it is installed.
Open support

How to deep link an app from the Facebook App builtin browser?

I have a link that when clicked loads a dynamic webpage (which performs some operations on the server), and then redirect the user to an installed app. So far, opening the link in the following apps/browsers works fine:
Android's default browser;
Chrome - several versions
Twitter app
Something similar is also being done on iOS, and works fine.
The following does not work, no matter what I try:
Sharing the link on Facebook, and opening it from the Facebook App with Facebook's builtin browser on Android (on iOS this works fine). I get an error saying "Page can't be loaded".
What has been done/tried:
The app has the needed content filters and intent setup correctly, and the filters were set to handle both a custom protocol scheme ("example://") and HTTP ("http", "example.com") - one at a time and both at the same time.
Using App Links tags or Open Graph tags (as suggested by some FB literature) did not solve the problem.
Redirecting the user with an HTTP redirect, javascript or meta refresh tag does not work.
Using an HTML link and taping it does not work.
All of those methods work everywhere except when using the Android Facebook App's builtin browser.
(this was tested with several Android versions, 2.3, 4.4 and 5.0)
Is there any special syntax for this kind of links to work?
Thanks,
Jean
Have you tried changing your site's redirect implementation?
https://developer.chrome.com/multidevice/android/intents
The functionality has changed slightly in Chrome for Android, versions
25 and later. It is no longer possible to launch an Android app by
setting an iframe's src attribute. For example, navigating an iframe
to a URI with a custom scheme such as paulsawesomeapp:// will not work
even if the user has the appropriate app installed. Instead, you
should implement a user gesture to launch the app via a custom scheme,
or use the “intent:” syntax described in this article.

Categories

Resources