Persistent module
Identifier
Section titled “Identifier”Enum: AffiseModules.Persistent (Runtime/Modules/AffiseModules.cs:7).
Purpose
Section titled “Purpose”Persist device id value … on application reinstall.
Requires an Apple ID on the device.
C# class
Section titled “C# class”Platform notes
Section titled “Platform notes”- iOS only.
- Installed via native CocoaPods; wired through the Unity iOS post-processor (
Editor/Build/Modules/ModulesIOSPostProcessBuild.cs:1).
Reinstall tracking
Section titled “Reinstall tracking”With Persistent enabled on iOS (and AndroidId on Android), Affise.GetRandomDeviceId() returns the same value across reinstalls.
Use AffiseSettings.SetDisableModules(...) to opt out:
Affise .Settings( affiseAppId: "Your appId", secretKey: "Your SDK secretKey", ) .SetDisableModules(new List<AffiseModules> { AffiseModules.Persistent, // Disable module programmatically for iOS AffiseModules.AndroidId, // Disable module programmatically for Android }) .Start();