QrQ*_*rQr 5 android google-chrome deep-linking react-native
大家好,我在 android 中有奇怪的深度链接行为,我创建了路线并为他们提供了路径、uriPrefix 和所有其他准备工作。所以我通过 adb 测试了它
>adb shell am start -W -a android.intent.action.VIEW -d "dapurq://auth/register" com.dapurq
Run Code Online (Sandbox Code Playgroud)
它与这个输出完美配合
Starting: Intent { act=android.intent.action.VIEW dat=dapurq://auth/register pkg=com.dapurq }
Warning: Activity not started, intent has been delivered to currently running top-most instance.
Status: ok
LaunchState: UNKNOWN (0)
Activity: com.dapurq/.MainActivity
TotalTime: 0
WaitTime: 5
Complete
Run Code Online (Sandbox Code Playgroud)
这就是答案,我为自己缺乏文档阅读而感到羞愧
所以我们不能直接访问深度链接,它应该包含在意图中
<a href="intent://beli/userprofile/someurl #Intent;scheme=dapurq;package=com.package;S.browser_fallback_url=https%3A%2F%2Fdapurq.id%2Fnoapps;end"> Deelink</a>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1539 次 |
| 最近记录: |