Persistent module
- Enum:
AffiseModules.PERSISTENT(lib/module/affise_modules.dart:11) - Native key:
"Persistent"(lib/module/affise_modules.dart:41)
Purpose
Section titled “Purpose”README 508-518 — stores the Affise device identifier in the iOS Security framework (Keychain), making it survive app reinstalls tied to the same Apple ID.
Platform
Section titled “Platform”Install
Section titled “Install”flutter pub add affise_attribution_libflutter pub add affise_attribution_module_persistentor add the dependency to pubspec.yaml:
dependencies: affise_attribution_lib: ^1.7.16 affise_attribution_module_persistent: ^1.7.16The package does not expose a Dart API of its own — it only pulls in the native module dependency:
- iOS (CocoaPods):
AffiseModule/Persistent1.7.16 - iOS (Swift Package Manager):
AffiseModulePersistent1.7.16
Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.
Native setup — alternative (iOS)
Section titled “Native setup — alternative (iOS)”Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):
pod 'AffiseModule/Persistent', affise_versionProviderType contributions
Section titled “ProviderType contributions”UNVERIFIED: ProviderType additions — the README does not enumerate.
Changelog 1.6.29 records: “Persistent AFFISE_DEVICE_ID”. AFFISE_DEVICE_ID is declared at lib/parameters/provider_type.dart:40.