动态 link - 如果已安装则导航到应用程序,如果未安装则导航到应用程序商店或 Play 商店(react-native)
dynamic link - navigate to app if it is installed or navigate to app store or play store if it is not installed (react-native)
在真实设备上测试后,我想直接将动态 link 导航到应用程序或 app/play 存储而无需浏览器桥接,目前动态 link 工作正常但它正在导航先浏览器,然后再到应用程序(如果已安装),否则先导航到浏览器,然后再播放商店或应用程序商店。
我需要先进行直接导航,而无需先访问浏览器。
enter image description here
我遵循的步骤。
使用 Firebase 创建动态 link。
分别为场景和 linked 应用添加了 ios 和 android 的行为。
3.Added firebase 中项目设置的团队 ID、应用程序商店 ID 和 apple-app-site-association 文件在由动态 link 创建的域上。
4.Added Android androidMainfest.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:scheme="https" android:host="www.example.com"/
</intent-filter>
关联的包 ID,ios 的 xcode 域。
项目中动态 link 的安装包。
纱线添加@react-native-firebase/dynamic-links
cd ios/ && pod installenter image description here
转到动态 link 选项卡中的活动跟踪、社交标签和高级选项,然后选中跳过应用预览页面的复选框(不推荐)。对我有用
在真实设备上测试后,我想直接将动态 link 导航到应用程序或 app/play 存储而无需浏览器桥接,目前动态 link 工作正常但它正在导航先浏览器,然后再到应用程序(如果已安装),否则先导航到浏览器,然后再播放商店或应用程序商店。
我需要先进行直接导航,而无需先访问浏览器。
enter image description here
我遵循的步骤。
使用 Firebase 创建动态 link。
分别为场景和 linked 应用添加了 ios 和 android 的行为。 3.Added firebase 中项目设置的团队 ID、应用程序商店 ID 和 apple-app-site-association 文件在由动态 link 创建的域上。 4.Added Android androidMainfest.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:scheme="https" android:host="www.example.com"/ </intent-filter>
关联的包 ID,ios 的 xcode 域。
项目中动态 link 的安装包。 纱线添加@react-native-firebase/dynamic-links cd ios/ && pod installenter image description here
转到动态 link 选项卡中的活动跟踪、社交标签和高级选项,然后选中跳过应用预览页面的复选框(不推荐)。对我有用