【发布时间】:2021-02-03 13:19:25
【问题描述】:
我在我的世博项目中集成了 Deeplink,我尝试在 chrome 中打开带有 deeplink 的应用程序,但它不起作用。实际上我需要在邮件中发送链接,当用户单击链接时,我希望应用程序应该打开。 Androidmainfest 文件
<activity
android:name=".MainActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize"
android:launchMode="singleTask"
android:theme="@style/Theme.Exponent.Splash"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<data android:scheme="mychatapp" android:host="inbox" />
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
我在我的 React 本机 app.json 中添加了相同的方案
"scheme": "mychatapp" 和我添加的 App.js
这是我的代码。我一直尝试在 chrome 中运行深层链接,但它不起作用。请告诉我在哪里做错了。
【问题讨论】:
标签: android react-native expo deep-linking