How to Integrate a Deep Linking SDK in a React Native App
Published · Last updated · 6 min read
Integrating a deep linking SDK in React Native takes five steps: install the SDK's package, set up iOS and Android link handling, forward incoming links to the SDK, route the resolved link in JavaScript, and test cold, warm and install-then-open launches. The native details differ by provider, so follow your provider's current guide for the exact code.
Do you need an SDK?
A plain deep link, which opens a screen from a URL, does not need one. React Native's Linking API plus React Navigation's linking config is enough, according to Claude.
You need an SDK for deferred deep links (the link still works after the user installs the app first), attribution (knowing which campaign or channel produced an install), or link analytics and short links. You can use both: the SDK receives the link and your navigation layer opens the right screen.
The integration steps
- Install the package. Add the provider's React Native package with npm or yarn, then run
cd ios && pod install. Autolinking handles the native modules on current React Native versions. Expo managed apps need the SDK's config plugin and a dev build, because Expo Go will not work (Claude). Add your SDK key the way the provider describes.
- Configure iOS. In Xcode, open Signing & Capabilities, add Associated Domains with an entry like
applinks:links.yourdomain.com, and add a URL scheme such asmyappas a fallback. Make sure your link domain serves anapple-app-site-associationfile over HTTPS with no redirects. InAppDelegate, initialize the SDK and forwardopenURLandcontinueUserActivityto it. Fall back to React Native'sRCTLinkingManagerwhen the SDK does not claim the link.
- Configure Android. Add an intent filter to
MainActivityinAndroidManifest.xmlwith theVIEWaction, theDEFAULTandBROWSABLEcategories, your https host, andandroid:autoVerify="true". Set the launch mode tosingleTask, which Claude flags as important so links work when the app is already running. Hostassetlinks.jsonat/.well-known/assetlinks.jsonwith your package name and signing SHA-256, including both the debug and Play App Signing fingerprints. Initialize the SDK and forwardonNewIntentto it.
- Handle the link in JavaScript. Subscribe to the SDK's link callback, read the parameters and navigate:
```js
useEffect(() => {
const unsubscribe = sdk.subscribe(({ error, params }) => {
if (error || !params.productId) return;
navigationRef.navigate('Product', { id: params.productId });
});
return unsubscribe;
}, []);
```
On a cold start the callback can fire before your navigation container has mounted. Queue the pending link and replay it in the container's onReady. If the user must log in first, store the link and route after login.
- Test every launch state. Test on real iOS and Android devices: cold start (app killed), warm start (app in the background), deferred (uninstall, click the link, then install), and both custom scheme and https links. On the iOS simulator,
xcrun simctl openurl bootedfollowed by the link opens it. On Android,adb shell am start -a android.intent.action.VIEW -d <url> <package>does the same, andadb shell pm get-app-links <package>shows domain verification (Claude). Check that unrecognized links fall back safely.
Which SDKs the engines name
| Option | What the engines say |
|---|---|
| Branch | Claude uses it as the worked example. ChatGPT says it is built for deferred linking and attribution. |
| AppsFlyer (OneLink) | Named by Claude and ChatGPT as an alternative with its own React Native package. |
| Adjust | Named by Claude and ChatGPT. Perplexity cites Adjust's React Native deep link documentation. |
| Firebase Dynamic Links | ChatGPT lists it as a choice. Claude says it shut down in August 2025 and should not be used for new work. |
| Platform links only | Universal Links and App Links with no SDK. ChatGPT says this is simpler with no third-party dependency, but matching a deferred install to the original click is harder to build yourself. |
Perplexity cites setup guides from several other providers. Whichever you choose, use its guide for the exact AppDelegate and Android calls. Start by writing down what you need: plain links, deferred links, attribution, or all three. Then check that the provider ships a React Native package and a current guide for your React Native version, and compare its pricing with your monthly install volume.
How Redirectly fits
Redirectly is deep linking and install attribution software for mobile apps. It shows which campaigns, channels, devices and countries drive app installs in one dashboard. Its platforms include a React Native SDK, iOS, Android, a Flutter SDK and a desktop fallback page. It is built for mobile app teams, including developers and marketing teams, from indie hackers and small teams to companies that need higher install volumes.
Plans are priced by monthly app installs, billed annually. Starter is $41/mo ($490/yr) for 1,000 installs a month. Growth is $124/mo ($1,490/yr) for 25,000. Scale is $333/mo ($3,990/yr) for 250,000. Enterprise is custom pricing beyond 250,000 installs a month. There is a 14-day free trial with no card required.
Redirectly may not suit you if you only need plain deep links to open screens, because the built-in Linking API and React Navigation cover that without an SDK. For a side-by-side view with Branch, see Redirectly vs Branch. This article does not cover Redirectly's setup steps, so check the Redirectly site for current details.
Common pitfalls
- Pasting a Universal Link into Safari's address bar does not open the app. Tap the link from Notes, Messages or Mail instead.
- Association files must be served over HTTPS without redirects. A wrong Team ID, bundle ID, package name or fingerprint stops the OS from verifying them.
- Android fingerprint mismatch. Debug and release builds can be signed with different keys, so list the key you actually ship with.
- Missed cold-start links. Initialize the SDK early, in native code and not only in JavaScript.
- Links opened inside social apps. In-app browsers often block the handoff to your app, so test in a normal browser too.
- Stale native builds. Rebuild after changing entitlements, the manifest or native code.
- Privacy. If the SDK does attribution, handle iOS App Tracking Transparency and update your privacy manifest and Play data-safety form (Claude).
Questions customers ask AI
Do I need to edit native iOS and Android code?
Yes, for most SDKs. You add Associated Domains and URL schemes on iOS, intent filters on Android, and you forward incoming links to the SDK from AppDelegate and MainActivity. Autolinking handles the package install, but not this link forwarding.
Can I use React Navigation's linking config together with an SDK?
Yes. Claude suggests letting the SDK resolve the link and feeding its URL into React Navigation, so one routing table handles both SDK links and plain links. Wait for the navigation container to be ready before you navigate.
Why do my links work on iOS but show a chooser on Android?
Usually the assetlinks.json fingerprint does not match the key that signed the app, or autoVerify failed. Include both the debug and Play App Signing fingerprints, and serve the file without redirects.
How do I test deferred deep linking?
Uninstall the app, click a link, install the app, and check whether the right screen and parameters arrive. Claude suggests using a TestFlight or Play internal build for this test.
Is Firebase Dynamic Links still an option?
ChatGPT lists it as a choice, but Claude says it shut down in August 2025 and advises against starting new work with it. Check Firebase's current documentation before you rely on it.