Android 应用程序链接不工作。如何从web浏览器打开应用程序?
我按照android文档中的步骤在我的应用程序中实现链接。我真的不需要任何花哨的参数传递,我想要的只是当用户点击我的应用程序打开的浏览器上的链接时。我所做的只是修改我的AndroidManifest。以下是相关部分Android 应用程序链接不工作。如何从web浏览器打开应用程序?,android,react-native,deep-linking,react-native-linking,Android,React Native,Deep Linking,React Native Linking,我按照android文档中的步骤在我的应用程序中实现链接。我真的不需要任何花哨的参数传递,我想要的只是当用户点击我的应用程序打开的浏览器上的链接时。我所做的只是修改我的AndroidManifest。以下是相关部分 <application android:name=".MainApplication" android:allowBackup="true" android:label="@string/app_name" android:icon="@mipmap/ic_l
<application
android:name=".MainApplication"
android:allowBackup="true"
android:label="@string/app_name"
android:icon="@mipmap/ic_launcher"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:windowSoftInputMode="adjustResize"
android:launchMode="singleTask">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter android:label="filter_react_native">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="u2player" android:host="open.my.app" />
</intent-filter>
</activity>
我正在使用react本机导航,并尝试从chrome浏览器或本机浏览器浏览到任何u2player://
u2player://open.my.app
u2player://open.my.app/
不起作用。我还从链接模块绑定了url
事件,但没有任何效果。我重新启动、卸载等
感谢帮助尝试使用。它解决了您面临的大部分问题,并且它还有一个非常干净的文档。如果您有任何问题,请过目并告诉我