【发布时间】:2018-03-19 09:11:48
【问题描述】:
我参考 https://github.com/aksonov/react-native-router-flux/pull/2148 在 React Native 中实现了深层链接。
这在 iOS 中可以正常工作。 (xcrun simctl openurl booted "my-app://")
但它在Android中不起作用。 (adb shell am start -a android.intent.action.VIEW -d "my-app://my-app")
它说
Starting: Intent { act=android.intent.action.VIEW dat=my-app://my-app pkg=com.my-app }
Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=my-app://my-app flg=0x10000000 pkg=com.my-app }
我认为我激活链接的方式 (adb shell am start -a android.intent.action.VIEW -d "my-app://my-app") 或 https://github.com/aksonov/react-native-router-flux/pull/2148 中的代码是错误的。
有谁知道解决这个问题的方法吗??
【问题讨论】:
标签: javascript android react-native deep-linking react-native-router-flux