Search code examples
adbreact-nativereact-navigationdeep-linking

How to test deep linking on Android?


I am trying to test Deep linking(locally) on Android. I was able to test on iOS with this link:

xcrun simctl openurl booted exp://127.0.0.1:19000/–/challenges/[SHARE-TOKEN]

For Android I tried:

adb shell am start -W -a android.intent.action.VIEW -d “exp://192.168.100.7:19000/–/challenges/[SHARE-TOKEN]” com.myapp.android

But I get this message: Error: Activity not started, unable to resolve Intent.

(ref: https://reactnavigation.org/docs/en/deep-linking.html#test-deep-linking-on-ios)

Is there any way I can test deep linking on Android or am I missing something?


Solution

  • You can simply use this:

    adb shell "am start 'exp://192.168.100.7:19000/–/challenges/[SHARE-TOKEN]'"