Skip to content

Persistent module

  • Enum: AffiseModules.PERSISTENT (lib/module/affise_modules.dart:11)
  • Native key: "Persistent" (lib/module/affise_modules.dart:41)

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.

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_persistent

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_persistent: ^1.7.16

The package does not expose a Dart API of its own — it only pulls in the native module dependency:

  • iOS (CocoaPods): AffiseModule/Persistent 1.7.16
  • iOS (Swift Package Manager): AffiseModulePersistent 1.7.16

Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.

Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):

pod 'AffiseModule/Persistent', affise_version

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.