【发布时间】:2021-08-21 16:58:35
【问题描述】:
在真实设备上测试后,我想在没有浏览器桥的情况下直接导航到应用程序或应用程序/播放商店的动态链接,目前动态链接工作正常,但它先导航到浏览器,然后再导航到应用程序(如果安装了其他)首先导航到浏览器,然后播放商店或应用商店。
我需要直接导航而无需先访问浏览器。
enter image description here
我遵循的步骤。
-
使用 Firebase 创建动态链接。
-
分别为场景和链接应用添加了 ios 和 android 的行为。 3.在firebase中的项目设置中添加了团队ID,应用商店ID,并且apple-app-site-association文件在由动态链接创建的域上。 4.在androidMainfest.xml中添加Android Intent过滤器
<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:scheme="https" android:host="www.example.com"/ </intent-filter> -
关联的捆绑包 id、域到 xcode for ios。
-
项目中动态链接的安装包。 纱线添加@react-native-firebase/dynamic-links cd ios/ && pod installenter image description here
【问题讨论】:
标签: xcode firebase react-native firebase-dynamic-links