Persistent module
Purpose
Section titled “Purpose”iOS Only. Module requires user phone to be authenticated by Apple ID. It uses Apple Security framework to store protected information in user account. Persist device id value for Get random device Id on application reinstall.
Module constant
Section titled “Module constant”AffiseModules.PERSISTENT = "Persistent"(src/module/AffiseModules.ts:1-16)
Platform notes
Section titled “Platform notes”- iOS only.
- Device must be signed in with an Apple ID; the module stores data through the Apple Security framework / iCloud Keychain.
Installation
Section titled “Installation”Since 1.7.16 the module ships as its own npm package, affise-attribution-module-persistent (iOS). Install it next to the core library:
npm install affise-attribution-libnpm install affise-attribution-module-persistentThe package only pulls in the native dependency (AffiseModule/Persistent at 1.7.16); its JS entry point is empty, so keep importing everything from affise-attribution-lib. Run pod install and rebuild the iOS app after installing.
Manual native alternative
Section titled “Manual native alternative”Instead of the npm package you can add the native dependency yourself (README “Modules → Manual Native”):
pod 'AffiseModule/Persistent', '1.7.16'See also
Section titled “See also”Affise.getRandomDeviceId- AndroidId module for the Android counterpart.