Skip to content

Persistent module

Enum: AffiseModules.Persistent (Runtime/Modules/AffiseModules.cs:7).

Persist device id value … on application reinstall.

Requires an Apple ID on the device.

  • iOS only.
  • Installed via native CocoaPods; wired through the Unity iOS post-processor (Editor/Build/Modules/ModulesIOSPostProcessBuild.cs:1).

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();