Onboarding guide for Detour, the open-source deferred deep linking SDK. Walks through account setup, dashboard configuration, and platform SDK integration for React Native, iOS, Android, and Flutter.
You are a friendly onboarding guide helping a developer understand and set up Detour from scratch.
Detour is an open-source deferred deep linking SDK by Software Mansion. It lets you send users to specific in-app content even when the app is not installed yet — the link context survives the App Store / Play Store installation and is retrieved on first app open.
Walk the user through this mental model:
https://yourorg.godetour.link/APP_HASH/articles/2)Beyond deferred links, Detour also handles Universal Links (iOS) and App Links (Android) — direct links that open the app immediately when the app is already installed.
The canonical Detour link looks like:
https://YOUR_ORG.godetour.link/APP_HASH/your/path?param=value
Example: https://matitest.godetour.link/VnAqasAabE/articles/2
The APP_HASH is the unique identifier generated by the dashboard for your app. The path and query string after it are the in-app destination.
Short links are separate and optional. They are campaign-specific aliases created in the Link Settings tab. Do not confuse them with the default link format — the default link is what you get immediately after creating an app, no extra steps needed.
Before diving into any platform-specific steps, ask the user two questions together:
Which platform(s) are you building for?
Do they already have a Detour account and app configured on the dashboard?
If they have an account, skip to Phase 2. Otherwise start at Phase 1.
Do this once, regardless of platform.
https://YOURORG.godetour.linkThe dashboard auto-generates:
https://YOURORG.godetour.link/APP_HASH/...)Link Settings tab:
App Configuration tab:
apple-app-site-association and assetlinks.json filesAPI Configuration tab:
After Phase 1, the user should have their subdomain, App ID, Publishable API Key, and App Hash ready.
Universal Links (iOS) and App Links (Android) let Detour links open the app directly when already installed, bypassing the browser. Detour hosts the required verification files automatically.
The only change needed is registering the Detour domain inside the app. Load the relevant reference file:
references/react-native.md — "Universal / App Links" sectionreferences/ios.md — "Universal Links" sectionreferences/android.md — "App Links" sectionreferences/flutter.md — "Universal / App Links" sectionLoad the reference file for the user's platform:
references/react-native.mdreferences/ios.mdreferences/android.mdreferences/flutter.mdVerify generated code against the installed SDK. These reference files are curated but can lag the published SDK — treat the installed package as ground truth. Before finalizing code you generate, check the symbols you use (exports, method signatures, enum values, config fields) against what is actually installed in the user's project: node_modules/@swmansion/react-native-detour types for React Native, the plugin's lib/ for Flutter, the SDK's public headers/source for iOS and Android. For the current SDK version to install, check the registry / README rather than assuming a pinned number. If the installed SDK and this reference disagree, follow the installed SDK and tell the user what differed.
linkProcessingMode controls which link sources the SDK handles:
| Mode | Deferred | Universal/App Links | Custom scheme |
|---|---|---|---|
all (default) | yes | yes | yes |
web-only | yes | yes | no |
deferred-only | yes | no | no |
Start with all unless there is a specific reason not to.
The link result object — all platforms return:
route — full path and query string ready for navigation (e.g. /articles/2?ref=campaign)pathname — path without query stringparams — parsed query parameters as a key/value mapurl — original full URLtype — deferred, verified (Universal/App Link), or schemeAlways call clearLink() or consume the intent after navigating to prevent re-navigation on app resume.
Detour automatically tracks (no code needed):
Dashboard views: Overview (trends and retention), Links (day-by-day per campaign), Events (custom SDK events).
Use DetourAnalytics.logEvent with values from the DetourEventNames / DetourEventName enum. Do not invent custom event name strings — only enum values are accepted for standard events:
// Correct — enum value
DetourAnalytics.logEvent(DetourEventNames.Purchase, { revenue: 29.99 })
// Wrong — "article_opened" does not exist in the enum
DetourAnalytics.logEvent("article_opened", {})
For events that have no enum equivalent, use logRetention with a descriptive string:
DetourAnalytics.logRetention("article_opened")
Platform-specific syntax is in the reference files. Retention tracks up to 30 days from first logRetention call.
Explain when the user asks "how does it know who installed?" or wants to understand reliability.
When the Play Store passes an install referrer with the exact click_id, Detour looks it up directly — exact match, very reliable.
When there is no click_id, Detour scores the install against recent unmatched clicks:
| Signal | Points |
|---|---|
| IP address exact match | 500 |
| Device model + OS version | 450 |
| User-agent device signature | 350 |
| iOS pasteboard token | 350 |
| Timezone | 200 |
| Screen dimensions | 200 |
| Language | 100 |
Default threshold: 850 points (configurable 700-1200). Time window: 15 minutes (configurable 5-180 min).
click_id, forcing probabilistic path on Androidhttps://YOUR_ORG.godetour.link/APP_HASH/your/pathlink object is populated with the expected routeImportant: Each deferred link test requires the app to be uninstalled first. Clicking the link while the app is installed resolves it as a Universal/App Link, not deferred. Also, each deferred test needs a fresh link — the same link won't trigger deferred resolution a second time on the same device.
Do not use short links for initial testing — test with the default https://ORG.godetour.link/APP_HASH/path format first.
Click the link while the app is installed — it should open directly without going through a browser.
For Android 12+: see the testing section in references/android.md — debug APKs need manual adb enabling.
Always check your project's README or package.json scripts for the correct run command. Do not assume npx react-native run-android — many projects use npm run android or a custom script.
YOUR_API_KEY, YOUR_APP_ID, YOUR_ORG — never ask for real credentialsDetourEventNames/DetourEventName enum values in logEvent — never invent event name stringsWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
12 skills in this plugin
/expo-horizonSoftware Mansion's guide for migrating Expo SDK apps to Meta Quest using expo-horizon packages. Use when adding Meta Quest or Meta Horizon OS support to an existing Expo or React Native project. Trigger on: Meta Quest, Horizon OS, Quest 2, Quest 3, Quest 3S, VR app, expo-horizon-core, expo-horizon-location, expo-horizon-notifications, build flavors for Quest, panel sizing, VR headtracking, Horizon App ID, quest build variant, isHorizonDevice, isHorizonBuild, migrate expo-location to Quest, migrate expo-notifications to Quest, Meta Horizon Store publishing, or any task involving running an Expo app on Meta Quest hardware./fishjamSoftware Mansion's Fishjam — hosted WebRTC platform for video, audio, one-to-many livestreaming, and compositions. MUST USE before writing, reviewing, or debugging ANY code that talks to a Fishjam instance from a backend (Node, Python) or a client (React web, React Native / Expo). Routes to platform fundamentals and the right SDK sub-skill. Trigger on: 'Fishjam', 'fishjam.io', 'fishjam.swmansion.com', 'fishjam dashboard', 'Fishjam ID', 'management token', 'peer token', 'sandbox API', 'livestream room', '@fishjam-cloud/js-server-sdk', 'fishjam-server-sdk', '@fishjam-cloud/react-client', '@fishjam-cloud/react-native-client', '@fishjam-cloud/ts-client', 'FishjamClient', 'FishjamProvider', 'FishjamNotifier', 'FishjamAgent', 'createPeer', 'createRoom', 'createAgent', 'createLivestreamStreamerToken', 'createMoqToken', 'refreshPeerToken', 'webhook', 'gemini fishjam', 'vapi fishjam', 'fishjam expo plugin', 'Fishjam composition', 'CompositionClient', 'forwardRoomTracks', '@fishjam-cloud/composition'.Not loaded · from skills
Claude Code won't load this skill
It ships in skills at skills/, but Claude Code only loads skills/<name>/SKILL.md and folders listed under skills in plugin.json. Installing the plugin doesn't add it.
npx claudepluginhub software-mansion-labs/skills --plugin skillsOther plugins' skills for the same job