Skip to main content
When a user opens a DeepLink URL (e.g. from an email or ad), your app can receive the URL and navigate to the right screen. Pass every deep link URL to the SDK with handleLink(url); the SDK sends it to your backend and fires resolved or failed events you can subscribe to.

Subscribe to resolved and failed events (optional)

Register listeners in a useEffect so you can navigate or show errors. Clean up by calling .remove() on the returned subscriptions:
Resolved event: event.url (string), event.metadata (object; currently empty, can be extended later). Failed event: event.error (string), event.errorCode (e.g. "NETWORK_ERROR", "SERVER_ERROR"), event.originalUrl (string). Use React Native’s Linking API to get the URL, then call handleLink(url):
  • Cold start (app opened from link): Linking.getInitialURL() then handleLink(initialUrl).
  • Foreground (app already open): Linking.addEventListener('url', ...) and handleLink(event.url).

Constraints

Troubleshooting

  • Native module not found — Rebuild the app after installing the package (e.g. cd android && ./gradlew clean && cd .. then npx react-native run-android).
  • NO_ACTIVITY error — Call configure after the app has started (e.g. in root component), not from very early bootstrap.
  • No deep links received — Check that AndroidManifest.xml has the correct <intent-filter> for your scheme/host/path and that you open a URL that matches them.

Next steps