Skip to main content

React Native SDK

Integrate deep linking and mobile attribution into your React Native app with the LinkForty SDK.

Expo app?

If you're building with Expo, use the Expo SDK instead. It provides the same features with a pure-JS implementation and no native code required.

Faster setup with AI

Using Claude Code, Cursor or Codex? Copy this prompt and paste it into your agent from the root of your project. It installs the SDK, wires deep links through your router (asking you which screen each link should open), adds one event, and verifies the install in your LinkForty dashboard.

Install the LinkForty SDK in a React Native app
React Native SDK install, Universal Links / App Links configuration, deferred and direct deep links, and a first in-app event.
Show the prompt
I use LinkForty (https://linkforty.com), a deep-linking and mobile attribution platform: short links that route each click to the app, the app store or the web, and record clicks, installs and in-app events per link.

Before writing any code, read the LinkForty documentation index at https://docs.linkforty.com/llms-full.txt and the pages listed under "Docs" below. Work from what the docs say, not from assumptions about how similar products work. If something you need is not in the docs or in this prompt — an ID, a token, a URL — stop and ask me for it rather than inventing a placeholder that looks real.

## Task: install the LinkForty React Native SDK

Add the LinkForty SDK to this app so that an install that follows a click on one of my links is attributed to that link, a link's deep-link path opens the right screen on first launch (deferred deep linking) and on later opens (Universal Links / App Links), and one key in-app event is recorded.

## Values

- **App token**: shown in the LinkForty dashboard under Workspace Settings → App Token (it starts with `at_`). Ask me for it; put it in the app's config or environment, not hard-coded in a committed source file.
- **Base URL**: `https://api.linkforty.com` for LinkForty Cloud. (Only a self-hosted LinkForty server uses a different origin — ask if you are not sure which this is.)
- **Link host**: the host my links are on, shown in the dashboard under Settings → Domains — the workspace's own host (it looks like `something.toapp.me`) and any verified custom domain listed there. Ask me for it. This is the domain the app must claim for Universal Links / App Links.
- **LinkForty MCP server** (optional): if it is configured in this environment (https://mcp.linkforty.com/mcp, or the `linkforty-mcp` command), use `get_app_config` to read the workspace's app settings and `create_link` to make a test link at the end. Do not set it up for me if it is not.

## How to work

1. **Look before you change anything.** Identify the framework, its version, the navigation/router library and where the app initializes at launch. List the screens (routes) you found, and **ask me which screen each incoming link should open and what parameter it needs** — for example "a link with `productId` opens the product screen". Wait for my answer before editing; do not guess routes.
2. **Work on a new git branch.** If the working tree has uncommitted changes, stop and tell me instead of building on top of them.
3. **Follow the docs pages named below, not memory.** Package names, method names and config keys come from those pages; LinkForty's SDKs are not the same as other attribution SDKs you may know.
4. **Do not invent values.** Anything in "Values" that says "ask me" is something you ask for. Never commit a token to source.
5. **Keep the app working without a link.** A launch with no matching click must behave exactly as before: no crash, no error surfaced to the user, no blocked start-up.
6. **Finish with a summary**: every file you changed and why; the manual steps that remain for me (Apple Team ID and bundle ID, Play signing SHA-256 fingerprint, store listing, a rebuild and reinstall) and where in the LinkForty dashboard each one goes (Workspace Settings → App Configuration); and anything you were unsure about.
7. **Verify.** Run the app once, then check the LinkForty dashboard: the SDK Doctor badge in the sidebar (https://docs.linkforty.com/guides/attribution/sdk-health) should report the SDK as installed. If the MCP server is available, create a test link with `create_link` and open it on a device or simulator; the click and the deep link should reach the screen we agreed on.

## Steps

1. **Install** with `npm install @linkforty/mobile-sdk-react-native`, then `cd ios && pod install` (https://docs.linkforty.com/sdks/react-native#installation). Also install its native dependencies in the app, which are peer dependencies: `npm install @react-native-async-storage/async-storage react-native-device-info` (autolinking only links the app's own dependencies). Supported: AsyncStorage 2.2+ or 3.x (3.x needs Android minSdk 24 and a recent Kotlin Gradle plugin; stay on 2.x if the app can't meet that, and keep a version the app already has if it is in range) and react-native-device-info 15.x.
2. **Initialize once at launch**: `void LinkForty.init({ baseUrl, appToken, debug: __DEV__ })` (from 1.10.0 `onDeepLink` and `onDeferredDeepLink` may be registered right after it without awaiting it; a second `init()` call, as under fast refresh, logs a warning and returns the first call's promise), where `LinkForty` is the package's default export (`import LinkForty from '@linkforty/mobile-sdk-react-native'`; there is no named `LinkForty` export), with the base URL and app token from "Values" (https://docs.linkforty.com/sdks/react-native#initialize-the-sdk). Leave `apiKey` out — it is only for creating links from the app.
3. **Claim the link host** (https://docs.linkforty.com/sdks/react-native#platform-configuration): iOS — add the Associated Domains capability with `applinks:<link host>`; Android — add an `<intent-filter android:autoVerify="true">` for `https://<link host>` to the main activity in `AndroidManifest.xml`, with `android:launchMode="singleTask"`; iOS — also add the two `AppDelegate` methods (`application:openURL:options:` and `application:continueUserActivity:restorationHandler:`) that return `RCTLinkingManager`'s result, or the `SceneDelegate` equivalent if the app has one, otherwise Universal Links never reach JavaScript. LinkForty serves the AASA and assetlinks.json files on that host itself; nothing to upload. Tell me the Apple Team ID / bundle ID and Android package / signing SHA-256 must be entered in LinkForty under Workspace Settings → App Configuration, or the OS will not verify the domain.
4. **Deferred deep link**: register `LinkForty.onDeferredDeepLink((data) => …)` right after init. When `data` is non-null, route to the screen we agreed on using its `deepLinkPath` / `customParameters`; when it is null (organic install) do nothing.
5. **Direct deep links**: register `LinkForty.onDeepLink((url, data) => …)` and route the same way, through the app's existing React Navigation setup — do not add a second navigation system.
6. **One in-app event**: at the obvious success moment in this app (sign-up completed, purchase, or the first key action — tell me which you chose) call `LinkForty.trackEvent('signup')`, or `LinkForty.trackRevenue(amount, 'USD')` for a purchase (https://docs.linkforty.com/sdks/react-native#track-events). No personal data in properties.

## Docs

- React Native SDK: https://docs.linkforty.com/sdks/react-native (Installation, Platform Configuration, Initialize the SDK, Track Events)
- SDK integration overview: https://docs.linkforty.com/guides/attribution/sdk-integration
- Deferred deep linking: https://docs.linkforty.com/guides/attribution/deferred-deep-linking
- Link hosts and app association files: https://docs.linkforty.com/guides/links/custom-domains#your-linkforty-domain
- SDK Doctor: https://docs.linkforty.com/guides/attribution/sdk-health

## Done when

- Opening one of my links on a device without the app, installing it and launching it lands on the screen we agreed on, and the install appears under Installs in the LinkForty dashboard attributed to that link.
- Opening the same link with the app installed goes straight to that screen without a browser stop.
- The in-app event shows under Events, attached to that install.
- SDK Doctor in the dashboard sidebar reports the SDK as installed.

When you are done, tell me: exactly which files changed and why, how I can verify it worked end to end (what to tap or run, and what I should see in the LinkForty dashboard), and anything you were unsure about.

It needs your app token; the prompt asks you for it, and the MCP server can supply it if you have that set up.

Features​

  • Deferred deep linking -- route new users to specific content after install
  • Direct deep linking -- handle links when the app is already installed
  • Install attribution -- match installs to the link click that drove them
  • Event tracking -- log in-app events tied to attribution data
  • Programmatic link creation -- create short links from your app
  • Server-side URL resolution -- resolve Universal Links / App Links for enriched data
  • TypeScript support -- full type definitions included
  • Cross-platform -- iOS and Android with a single codebase

Requirements​

  • React Native >= 0.65.0 (the floor set by @react-native-async-storage/async-storage 2.x)
  • React >= 17.0.0
  • Node.js >= 20.0.0

Installation​

npm install @linkforty/mobile-sdk-react-native

The SDK uses two native modules, which are peer dependencies: install them in your app, which then has a single copy of each that the SDK shares.

npm install @react-native-async-storage/async-storage react-native-device-info
  • @react-native-async-storage/async-storage 2.2 or later, or 3.x. With 3.x the SDK uses its default (legacy) storage, which keeps the data written with 2.x, so upgrading AsyncStorage keeps the install ID. AsyncStorage 3.x has its own native requirements (for example Android minSdk 24 and a recent Kotlin Gradle plugin); stay on 2.x if your app can't meet them.
  • react-native-device-info 15.x.

React Native's autolinking only links native modules listed in your app's own package.json, so without this step their native code is not built into the app.

iOS​

After installing, run:

cd ios && pod install && cd ..

Android​

No extra step beyond the native dependencies above: once they are in your app's package.json, autolinking registers them.

Platform Configuration​

  1. In Xcode, add the Associated Domains capability to your target
  2. Add your link host: applinks:acme.toapp.me for your LinkForty domain, and applinks:links.example.com for each custom domain
  3. Your LinkForty server automatically hosts the Apple App Site Association file at /.well-known/apple-app-site-association on every one of those hosts
  4. Forward incoming links to React Native in AppDelegate. Without this, iOS opens your app from a Universal Link but JavaScript never receives the URL, so the SDK's onDeepLink never fires. Add both methods: the first handles URL-scheme links, the second Universal Links.

In AppDelegate.swift:

func application(_ app: UIApplication, open url: URL, options: [UIApplication.OpenURLOptionsKey: Any] = [:]) -> Bool {
return RCTLinkingManager.application(app, open: url, options: options)
}

func application(
_ application: UIApplication,
continue userActivity: NSUserActivity,
restorationHandler: @escaping ([UIUserActivityRestoring]?) -> Void
) -> Bool {
return RCTLinkingManager.application(application, continue: userActivity, restorationHandler: restorationHandler)
}

Or in AppDelegate.mm:

#import <React/RCTLinkingManager.h>

- (BOOL)application:(UIApplication *)application
openURL:(NSURL *)url
options:(NSDictionary<UIApplicationOpenURLOptionsKey, id> *)options
{
return [RCTLinkingManager application:application openURL:url options:options];
}

- (BOOL)application:(UIApplication *)application
continueUserActivity:(nonnull NSUserActivity *)userActivity
restorationHandler:(nonnull void (^)(NSArray<id<UIUserActivityRestoring>> * _Nullable))restorationHandler
{
return [RCTLinkingManager application:application
continueUserActivity:userActivity
restorationHandler:restorationHandler];
}

If your app uses a SceneDelegate (it declares UIApplicationSceneManifest in Info.plist), RCTLinkingManager ignores these AppDelegate methods: forward links from the SceneDelegate instead. See React Native's Linking guide.

Add an intent filter to your AndroidManifest.xml:

<activity
android:name=".MainActivity"
android:launchMode="singleTask">

<intent-filter android:autoVerify="true">
<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="acme.toapp.me" />
</intent-filter>
</activity>

Use your LinkForty domain as the host, and add a second <data> element for each custom domain. Your LinkForty server automatically hosts the Digital Asset Links file at /.well-known/assetlinks.json on every one of those hosts.


Quick Start​

Initialize the SDK​

Call init() once at app startup. onDeepLink and onDeferredDeepLink may be registered right after it, without awaiting it (SDK 1.10.0 or later), so your link handler is live from the first frame while the install report is still in flight. init() always settles: every request is abandoned after requestTimeoutMs (default 10 seconds), and a network or storage failure is logged, never thrown.

import React, { useEffect } from 'react';
import LinkForty, { DeepLinkData } from '@linkforty/mobile-sdk-react-native';

function App() {
useEffect(() => {
const setUp = async () => {
await LinkForty.init({
baseUrl: 'https://api.linkforty.com',
appToken: 'at_your_app_token', // required on Cloud
debug: __DEV__,
});

// Handle deferred deep links (new installs)
LinkForty.onDeferredDeepLink((data: DeepLinkData | null, result) => {
if (data) {
console.log('Attributed install:', data);
navigateToContent(data);
} else if (result.status === 'failed') {
console.warn('Install report failed, retried next launch:', result.error);
}
});

// Handle direct deep links (app already installed)
LinkForty.onDeepLink((url: string, data: DeepLinkData | null) => {
console.log('Deep link opened:', url);
if (data) {
navigateToContent(data);
}
});
};
setUp();
}, []);

const navigateToContent = (data: DeepLinkData) => {
const productId = data.customParameters?.productId;
if (productId) {
// Navigate to product screen
}
};

return (/* your app */);
}

Track Events​

import LinkForty from '@linkforty/mobile-sdk-react-native';

// Track a custom event
LinkForty.trackEvent('purchase', {
value: 29.99,
currency: 'USD',
productId: '123',
});

// Track a signup
LinkForty.trackEvent('signup', { method: 'email' });

// Track revenue (standardized format for dashboard aggregation)
LinkForty.trackRevenue(29.99, 'USD', { productId: '123', orderId: 'order-456' });
import LinkForty from '@linkforty/mobile-sdk-react-native';

const result = await LinkForty.createLink({
deepLinkParameters: { route: 'PRODUCT', id: '123' },
title: 'Check out this product',
utmParameters: { source: 'app', medium: 'share' },
});

console.log(result.url); // https://go.yourdomain.com/abc123
console.log(result.shortCode); // abc123
console.log(result.linkId); // uuid
warning

Link creation requires an API key. Pass apiKey in your init() configuration. The simplified endpoint (/api/sdk/v1/links) is only available on LinkForty Cloud, not self-hosted Core.


API Reference​

init(config)​

Initialize the SDK. Must be called before any other method. Idempotent -- calling it twice, even while the first call is still running, logs a warning and returns the first call's promise. The only error it rejects with is one thrown by your own onDeferredDeepLink callback.

On the first launch it reports the install (and on Android waits up to 2 seconds for the Google Play install referrer) before it resolves. If the report fails (no connection, a server error), it is reported again on the next launch, and so on until the server accepts it; until then there is no install ID and trackEvent() sends nothing.

Upgrading from 1.9.0 or earlier

Those versions never retried a failed first-launch install report, which left the device without an install ID, so its events were dropped. After the upgrade, such a device reports its install once. It appears as an install dated at the upgrade, usually organic, because the click that led to the original install is normally outside the attribution window by then. Devices that already have an install ID never report again. This recovery report only restores the install ID: it does not call onDeferredDeepLink, and any link it matches is not saved for getInstallData() and is not credited for later events. A link the user taps to open the app is credited as usual.

await LinkForty.init(config: LinkFortyConfig): Promise<void>
ParameterTypeRequiredDescription
baseUrlstringYeshttps://api.linkforty.com on LinkForty Cloud; your server's URL if you self-host
apiKeystringNoAPI key, only needed for createLink(). It is a secret: don't ship one unless you create links from the app.
appTokenstringCloud: yesPublic workspace token. Required for Cloud: installs are matched only to your workspace's links, and organic installs (App Store discovery, social mentions, etc.) appear in your analytics. Find it in the dashboard under Settings → App Configuration. Safe to ship in your app bundle. See App token.
debugbooleanNoLog what the SDK does, including link URLs and link data, to the console (default: false). The API key is never logged. Without debug the SDK logs only failures: a failed install report or event, init() called twice, and an event dropped for lack of an install ID.
attributionWindownumberNoAttribution window in days (default: 7)
requestTimeoutMsnumberNoHow long any request to the server may take before it is abandoned, in milliseconds (default: 10000). An abandoned install report is retried on the next launch.
autoTrackNavigationboolean | objectNoAuto-emit screen_view events from React Navigation. Requires navigationRef. See Automatic Screen Tracking. Default: off.
navigationRefrefNoYour React Navigation container ref. Required when autoTrackNavigation is enabled.

onDeferredDeepLink(callback)​

Register a callback for deferred deep links. Called once, on the launch that reports the install: with the link's data, or null for an organic install (no attribution match) or a failed report. The second argument says which: result.status is 'attributed', 'organic' or 'failed'; with 'failed', result.error is the failure, and the launch that later reports the install successfully calls the callback again with that report's result. A callback that takes only data keeps working. It can be registered before or after init() and still fires on that launch. Later launches don't call it; use getInstallData() for the install's link data.

LinkForty.onDeferredDeepLink(
callback: (data: DeepLinkData | null, result: DeferredDeepLinkResult) => void,
): void

On Android, the SDK sends the Google Play install referrer with the install, so an install from Google Play is matched to the exact click (attributionMethod "install_referrer", competingLinks 0). Any other deferred match is made from device signals, not an ID, so two people on the same network can be confused. The deferred deep link reports how the match was made: confidenceScore (0–100), matchedFactors, attributionMethod ("install_referrer" or "fingerprint") and competingLinks, the number of other links that had a click from the same network good enough to match. At 0 no other link was in contention. Above 0, another person's tap may be what led to this install, so before acting on a single-use link (a sign-in or gift link), ask the user to confirm. The fields are empty on a direct open, and from a server that doesn't report them. See Single-use links.

LinkForty.onDeferredDeepLink((data) => {
if (!data) return;
if ((data.competingLinks ?? 0) > 0) {
confirmBeforeSignIn(data); // another link was in contention
} else {
signIn(data);
}
});

onDeepLink(callback)​

Register a callback for direct deep links. When a LinkForty link opens the app, the SDK resolves it server-side for enriched data, then invokes the callback. Calling onDeepLink() again replaces the callback: only the newest one is called, once per link.

A LinkForty link is an http(s) URL on your baseUrl host or, with appToken set, on one of your workspace's link hosts: its toapp.me label and verified custom domains. The SDK learns those hosts at launch and saves them for the next one. Any other URL reaches the callback with data set to null. With appToken set, every request carries it, and a lookup answers only with your own workspace's links.

LinkForty.onDeepLink(callback: (url: string, data: DeepLinkData | null) => void): void

trackEvent(name, properties?)​

Track an in-app event. Requires a successful install report (automatic on first launch, and retried on later launches if it fails); without an install ID the call logs a warning and sends nothing. An event tracked while init() is still running is held (up to 100) and sent, with the time it was tracked, once the install ID is known; if that launch's report fails, the held events are dropped with one warning. Events are sent once, straight away: there is no offline queue, so an event that fails to send is logged and dropped, not retried.

await LinkForty.trackEvent(name: string, properties?: Record<string, any>): Promise<void>

trackRevenue(amount, currency, properties?)​

Track a revenue event using the standardized format. The amount must be non-negative. All four LinkForty SDKs use the same convention so the Events dashboard can aggregate revenue.

await LinkForty.trackRevenue(amount: number, currency: string, properties?: Record<string, any>): Promise<void>
ParameterTypeRequiredDescription
amountnumberYesNon-negative revenue amount
currencystringYesISO 4217 currency code (e.g., USD)
propertiesRecord<string, any>NoAdditional event properties

Internally calls trackEvent('revenue', { revenue: amount, currency, ...properties }).

createLink(options)​

Create a short link programmatically. Requires an API key.

await LinkForty.createLink(options: CreateLinkOptions): Promise<CreateLinkResult>
OptionTypeRequiredDescription
templateIdstringNoTemplate UUID (uses organization's default template if omitted)
templateSlugstringNoTemplate slug for URL construction
deepLinkParametersRecord<string, string>NoIn-app routing parameters
titlestringNoLink title
descriptionstringNoLink description
customCodestringNoCustom short code, up to 20 characters; must not already be used in your workspace (409 SHORT_CODE_TAKEN)
utmParametersUTMParametersNoCampaign tracking parameters
externalUserIdstringNoUser ID for deduplication and share attribution

Returns: { url: string, shortCode: string, linkId: string, deduplicated?: boolean }

setExternalUserId(id)​

Set the external user ID for share attribution. This ID is automatically attached to all createLink() calls unless overridden per-call. Pass null to clear.

LinkForty.setExternalUserId(id: string | null): void

getExternalUserId()​

Returns the current external user ID, or null if not set.

LinkForty.getExternalUserId(): string | null

getInstallId()​

Get the server-assigned install UUID. Returns null if no install has been reported.

await LinkForty.getInstallId(): Promise<string | null>

getInstallData()​

Retrieve cached attribution data from local storage. Returns null for organic installs.

await LinkForty.getInstallData(): Promise<DeepLinkData | null>

clearData()​

Wipe all locally stored SDK data (install ID, install link data, the install-reported flag, the attribution context and the saved link hosts, which are then fetched again). The next app launch will be treated as a fresh install. Deep link listening keeps working.

await LinkForty.clearData(): Promise<void>

Types​

import type {
LinkFortyConfig,
DeepLinkData,
InstallAttributionResponse,
CreateLinkOptions,
CreateLinkResult,
DeferredDeepLinkCallback,
DeepLinkCallback,
} from '@linkforty/mobile-sdk-react-native';

DeepLinkData​

FieldTypeDescription
shortCodestringThe link's short code
iosUrlstring?iOS destination URL
androidUrlstring?Android destination URL
webUrlstring?Web fallback URL
utmParametersUTMParameters?UTM tracking parameters
customParametersRecord<string, string>?Custom query parameters
deepLinkPathstring?In-app routing path (e.g., /product/123)
appSchemestring?App URI scheme (e.g., myapp)
clickedAtstring?When the link was clicked (ISO 8601)
linkIdstring?Link UUID
confidenceScorenumber?Deferred only: match score, 0–100
matchedFactorsstring[]?Deferred only: the signals that matched (e.g. ip, user_agent, timezone)
attributionMethodstring?Deferred only: install_referrer or fingerprint
competingLinksnumber?Deferred only: other links with a click from the same network good enough to match. See Check the match on single-use links

UTMParameters​

FieldType
sourcestring?
mediumstring?
campaignstring?
termstring?
contentstring?

Automatic Screen Tracking​

Enable autoTrackNavigation to emit a screen_view event on every React Navigation transition — no manual trackEvent calls per screen. Screen views flow through the normal event pipeline and carry the active deep-link attribution context, so they power App Analytics screen flow and the SDK health "events flowing" signal.

It requires a navigation container ref. Pass it as navigationRef:

import { createNavigationContainerRef, NavigationContainer } from '@react-navigation/native';
import LinkForty from '@linkforty/mobile-sdk-react-native';

export const navigationRef = createNavigationContainerRef();

LinkForty.init({
baseUrl: 'https://api.linkforty.com',
appToken: 'at_your_app_token',
autoTrackNavigation: true, // screen names only — privacy-safe default
navigationRef,
});

// Attach the same ref to your container
<NavigationContainer ref={navigationRef}>
{/* ...screens... */}
</NavigationContainer>

With React Navigation 7, the ref from createNavigationContainerRef() type-checks as navigationRef with or without a param list (createNavigationContainerRef<RootStackParamList>()), from SDK 1.9.2.

Capturing route params​

By default, autoTrackNavigation: true captures screen names only — never route params, since params can hold personal data. To capture specific, non-PII params, pass an options object with an explicit allow-list:

LinkForty.init({
baseUrl: 'https://api.linkforty.com',
navigationRef,
autoTrackNavigation: {
captureParams: ['productId', 'category'], // only these keys are captured
debounceMs: 350, // collapse rapid transitions (default 350ms)
},
});
OptionTypeDefaultDescription
captureParamsstring[][] (none)Allow-list of route param keys whose primitive values may be captured. Never list keys that can hold personal data.
debounceMsnumber350Debounce window for rapid transitions, in milliseconds.

What gets sent​

Each transition emits an event named screen_view with:

PropertyDescription
screenThe active route name
previousScreenThe route navigated from (when available)
paramsAllow-listed route params (only if captureParams is set)

Rapid transitions are debounced to the final screen and consecutive duplicates are dropped. Apps that don't use React Navigation are unaffected — if autoTrackNavigation is enabled without a navigationRef, screen tracking is simply disabled (a warning is logged in debug mode).

SDK version

Automatic screen tracking needs SDK 1.5.0 or later. Check the SDK health page to confirm the version your app reports.


Self-Hosted Configuration​

If you're running LinkForty Core instead of Cloud, omit the apiKey:

await LinkForty.init({
baseUrl: 'https://links.yourcompany.com',
debug: false,
});

Link creation via createLink() works on LinkForty Cloud only. Self-hosted Core has no /api/sdk/v1/links endpoint, and its /api/links requires an originalUrl the SDK doesn't send, so create links from your backend instead. Core also has no link-domains endpoint, so the SDK looks up links on the baseUrl host only: set baseUrl to the host your links use.


Troubleshooting​

  1. Attribution window expired -- the user installed too long after clicking the link
  2. Fingerprint mismatch -- different network between click and install, VPN, or iOS privacy relay
  3. Not the install's launch -- the callback fires only on the launch that reports the install; on later launches read getInstallData()
  4. Enable debug mode -- set debug: true to see detailed logs

The AppDelegate methods that forward links to RCTLinkingManager are missing, so iOS opens the app without passing the URL to JavaScript. Add both methods from iOS -- Universal Links, step 4, and rebuild. Apps with a SceneDelegate forward links from there instead.

Events not appearing in analytics​

  1. No install ID -- events require a successful install report. Check the logs for a failed install report (logged even without debug). A report that fails, for example with no connection, is retried on each later launch until it succeeds
  2. Network issues -- the React Native SDK does not queue events offline (events are fire-and-forget)

iOS build errors​

cd ios && pod deintegrate && pod install && cd ..

Android build errors​

Ensure minSdkVersion is at least 21 in android/build.gradle, or 24 if your app uses AsyncStorage 3.x.


Parity Notes​

The React Native SDK has some gaps compared to the iOS, Android, and Expo SDKs:

  • No offline event queue -- events are fire-and-forget; failed events are not retried
  • No reset() method -- only clearData() is available
  • No typed errors -- throws generic Error instead of typed error codes
  • No configuration validation -- HTTPS and attribution window bounds are not enforced

See the SDK Specification for the full feature parity matrix.


Next Steps​

Resources​