Skip to content
Dashboard

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.

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 named Detour, under the keys Detour_firstEntranceFlag and Detour_deviceId.
  • iOS — UserDefaults.standard, under the keys DetourFirstEntranceFlag and Detour_deviceId.
  • 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.