Issue with React native deep linking - android

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.

Related

Android react-native deep linking and application embedded browser

I have a react-native application which use deep linking for Android.
Basically I have a working setup, which means that when im testing on a real device if I go to my website page displaying a link mapped by the AndroidManifest.xml, my app is correctly opening when clicking on the link. Same thing when I'm clicking the mapped link directly from Gmail app or Slack, everything works correctly.
However, when I'm going to my website page (which is displaying the mapped link) from the "embedded" Gmail or Slack browser and clicking on the link, the deep link doesn't work and it redirects on the web directly without asking to open the app first.
It seems a strange behaviour for me and after some research I wasn't able to find an explanation or a solution, so anyone have an idea on how to handle this ?
Thank you for your time.

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

Open a specific Activity of app from a web link android

I tried almost all the methods that displayed regarding the query and deeplinking, but none of them worked for me.
This is the type of the link which is to be opened from an android browser
"http://www.udmy.com/view?jb_id=J091107"
How can I start specific activity of my application passing "jb_id=J091107" if this URL is accessed from mobile browser?
Is it possible to get "jb_id=J091107" ?
I also want to open playstore link if app is not installed in phone.
Thanks in advance

Deep linking doesn't work correctly in Android 7

I've encountered that links like:
intent://#Intent;scheme=somescheme;package=com.some.package;S.browser_fallback_url=market%3A%2F%2Fdetails?id=com.some.package;
do not work correctly in Android 7 (7.1.1) systems, while in previous versions they work as intended. By "do not work correctly" I mean that if we have a required app installed to open this link, then everything goes as it should and this app opens when we click this link. But when we don't have the required app, a correct redirect on the fallback url is not processed: we're getting on a search results page or a blank page with a message about an incorrect redirect in a web browser.
Trying to find out how to solve this problem (maybe just by modifying the deep link), any suggestions will be appreciated.

Deep link in android app

I implemented deep link in my android app. Whenever I clicked the share link its open my app perfectly.
My problem is copy the share link and paste the chrome browser it doesn't open my app.
Sorry for my bad english.
Chrome is an application.
By trying to use deep link in Chrome, you are actually trying to open an app(your app) from another app(Chrome) which is not really what deep link does!
To test your deep link, enter link in default browser of your phone(mostly it is Google Search). And as you say, it is opening. So your deep link is working perfectly fine and you don't need to worry about that.
Now, How to make share link work from Chrome:
For that, you need to use 'a href' tag that will be defined on your website! Moreover, you need to implement App Link instead of simple deep link. You can refer to this answer here for this Deep Link not working in Chrome for Android .
You need to actually click on a link pointing to that URL to trigger the deep-link Intent, writing the URL manually doesn't trigger it.

Categories

Resources