Skip to main content

Deep Links React Native

The Nemu React Native SDK already automatically consumes the React Native Linking API to capture:
  • The URL that opened the app
  • URLs received while the app is already running
No additional JavaScript code is needed to handle deep links. For this to work, native app configuration is required, as the SDK does not register deep links in the operating system.

What the SDK does

  • Captures URLs via Linking
  • Extracts UTMs and nemu_* parameters
  • Persists the session origin
  • Associates events sent with the captured origin

What needs to be configured in the app

Android

Configure an intent-filter in AndroidManifest.xml for the domain or scheme used by the app.
<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="https" android:host="app.yourdomain.com" />
</intent-filter>

iOS

Configure Universal Links (Associated Domains) for the domain used by the app.
applinks:app.yourdomain.com
The apple-app-site-association file must be available on the configured domain.