Nikasv
Nikasv

Reputation: 1397

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?

Upvotes: 0

Views: 505

Answers (1)

Simon Marquis
Simon Marquis

Reputation: 7526

You can simply use this:

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

Upvotes: 1

Related Questions