【问题标题】:Deep link is not working at chrome expo react native project深度链接在 chrome expo react native 项目中不起作用
【发布时间】: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


    【解决方案1】:

    good example

    很简单...试试... 在我的情况下工作......但没有打开正确的屏幕

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-10
      • 2020-12-25
      • 1970-01-01
      • 2018-12-25
      • 2020-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多