如何测试 Android 上的深度链接?
How to test deep linking on Android?
我正尝试在 Android 上测试 Deep linking(本地)。我能够用这个 link:
在 iOS 上进行测试
xcrun simctl openurl booted exp://127.0.0.1:19000/–/challenges/[SHARE-TOKEN]
对于 Android 我试过:
adb shell am start -W -a android.intent.action.VIEW -d “exp://192.168.100.7:19000/–/challenges/[SHARE-TOKEN]” com.myapp.android
但我收到此消息:错误:Activity 未启动,无法解析 Intent。
(参考:https://reactnavigation.org/docs/en/deep-linking.html#test-deep-linking-on-ios)
有什么方法可以让我在 Android 上进行深入 link 测试,还是我遗漏了什么?
你可以简单地使用这个:
adb shell "am start 'exp://192.168.100.7:19000/–/challenges/[SHARE-TOKEN]'"
我正尝试在 Android 上测试 Deep linking(本地)。我能够用这个 link:
在 iOS 上进行测试xcrun simctl openurl booted exp://127.0.0.1:19000/–/challenges/[SHARE-TOKEN]
对于 Android 我试过:
adb shell am start -W -a android.intent.action.VIEW -d “exp://192.168.100.7:19000/–/challenges/[SHARE-TOKEN]” com.myapp.android
但我收到此消息:错误:Activity 未启动,无法解析 Intent。
(参考:https://reactnavigation.org/docs/en/deep-linking.html#test-deep-linking-on-ios)
有什么方法可以让我在 Android 上进行深入 link 测试,还是我遗漏了什么?
你可以简单地使用这个:
adb shell "am start 'exp://192.168.100.7:19000/–/challenges/[SHARE-TOKEN]'"