# Custom Storage

In Flutter Plugin `1.1.1`, custom storage injection is not exposed in Dart API.

## Current behavior

- Flutter bridge does not accept storage adapter in `DetourConfig`.
- Persistence is handled by native SDK internals:
  - Android native SDK storage (the plugin bridge passes `storage = null`, so the native SDK falls back to its own SharedPreferences store)
  - iOS native SDK `UserDefaults` keys for first-entrance and analytics device ID

## Practical impact

- You cannot pass a Flutter-level storage implementation (for example Hive/SecureStorage) to Detour yet.
- Deferred-link first-launch semantics depend on native persisted state.
- To retest deferred flow, use reinstall flow (see [Testing & Troubleshooting](https://detour.swmansion.com/docs/sdk/flutter/testing)).

## Related pages

- [Usage](https://detour.swmansion.com/docs/sdk/flutter/sdk-usage)
- [API Reference](https://detour.swmansion.com/docs/sdk/flutter/api-reference)