【问题标题】:Can't activate deep link in Android using react-native-router-flux无法使用 react-native-router-flux 在 Android 中激活深层链接
【发布时间】: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


    【解决方案1】:

    您的 shell 命令末尾缺少包名称(com.my-app 或其他名称)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-04-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多