Skip to content

Instantly share code, notes, and snippets.

@naishe
Last active December 6, 2020 09:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naishe/f30cf0159a4d42117e83e10d54b474da to your computer and use it in GitHub Desktop.
Save naishe/f30cf0159a4d42117e83e10d54b474da to your computer and use it in GitHub Desktop.
Deep Linking Push Notifications with React Navigation #2
<!-- File Name: android/app/src/main/AndroidManifest.xml -->
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="your.app.package.name">
<!-- redacted permissions and other tags -->
<application >
<activity >
<!-- redacted other intent filters -->
<!-- this intent filter handles myapp:// scheme -->
<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="myapp"/>
</intent-filter>
<!-- this intent filter handles https://app.myapp.com/ and http://app.myapp.com/ schemes -->
<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="app.myapp.com"/>
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity"/>
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/ic_stat_ic_notification"/>
</application>
</manifest>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment