【发布时间】:2018-08-17 14:37:48
【问题描述】:
如何进行设置,以便动态链接(来自 Fireabase)直接打开应用,而不是先要求在浏览器或应用之间进行选择。
我已设置 Firebase 动态链接并将证书指纹 sha256 添加到 firebase 项目设置中。选择任一选项(浏览器或应用程序)最终会打开应用程序,但它仍然会询问。
据我所知,这可以通过 Android 6.0 及更高版本的 Android App Links 实现。
AndroidManifest.xml 中的意图过滤器
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<category android:name="android.intent.category.BROWSABLE"/>
<data android:host="my-custom-subdomain.page.link" android:scheme="http"/>
<data android:host="my-custom-subdomain.page.link" android:scheme="https"/>
</intent-filter>
有什么建议吗?
【问题讨论】:
标签: android firebase react-native-android firebase-dynamic-links