Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/209.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/batch-file/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用https url响应本机(Android)深度链接问题_Android_React Native_Deep Linking - Fatal编程技术网

使用https url响应本机(Android)深度链接问题

使用https url响应本机(Android)深度链接问题,android,react-native,deep-linking,Android,React Native,Deep Linking,我正在使用http url在react原生android应用程序中设置深度链接。当我试图从浏览器打开应用程序但它没有打开时 AndroidManifest.xml <intent-filter android:label="@string/app_name"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.in

我正在使用http url在react原生android应用程序中设置深度链接。当我试图从浏览器打开应用程序但它没有打开时

AndroidManifest.xml

<intent-filter android:label="@string/app_name">
        <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.abc.com"  />
      </intent-filter>


我希望应用程序应该是打开的。

如果您想同时支持http和https,可以尝试以下方法:

<intent-filter>
    <action android:name="android.intent.action.VIEW" />
    <category android:name="android.intent.category.DEFAULT" />
    <category android:name="android.intent.category.BROWSABLE" />
    <data android:scheme="http" />
    <data android:scheme="https" />
    <data android:host="www.abc.com" />
</intent-filter>