React Native (Android) Deep Linking Issue with https url

i'm setting up deep linking in react native android app using http url. and when i try to open app from browser but it not open.

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>

i expect app should be open.

Upvotes: 0

Views: 1326

Answers (1)

Abhishek Nalwaya
Abhishek Nalwaya

Reputation: 184

If you want to support both http and https, you can try this:

<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>

Upvotes: 1

Related Questions