Custom Storage
The plugin has no storage adapter. DetourConfig takes no storage argument, so
you cannot pass a Flutter-level storage engine such as Hive or Secure Storage to
Detour.
Where state is stored
Section titled “Where state is stored”Detour persists two values, a first-entrance flag and an analytics device id, and each native SDK keeps them in its own default store:
- Android —
SharedPreferences, in a file namedDetour, under the keysDetour_firstEntranceFlagandDetour_deviceId. - iOS —
UserDefaults.standard, under the keysDetourFirstEntranceFlagandDetour_deviceId.
What this means
Section titled “What this means”- Deferred-link first-launch behavior follows the native persisted state, not anything your Dart code holds.
- Clearing app data or reinstalling resets both values. That is how you retest a deferred flow. See Testing & Troubleshooting.