Deep Linking React Native App On Android
I'm trying to get make a url open the app and to have some data with this url passed into the app, but it doesn't work. My activity tag in AndroidManifest.xml:
Solution 1:
The app will not open if the link is entered into the browser's address bar. It has to be a web page
<a/>tag like:<a href="http://example.com"></a>
link inside some page. (https://developer.chrome.com/multidevice/android/intents)
As you probably do not have a web page to put tag inside, for your tests you can use adb command. Open the console and write the following line:
adb shell am start-W -a android.intent.action.VIEW -d "YOURHOST://YOURSCEME/" com.YOURAPPNAME
for example in your case it should be something like (change YOURAPPNAME with the name of your app):
adb shell am start-W -a android.intent.action.VIEW -d "convid://conv/" com.YOURAPPNAME
if you are using windows and, and if it says adb command is undefined you need to run the command from platform-toolsfolder inside your SDK folder such as:
Android/Sdk/platform-tools/
Post a Comment for "Deep Linking React Native App On Android"