MoEngageEventSyncTriggerType
@objc(MoEngageEventSyncTriggerType)
public enum MoEngageEventSyncTriggerType : Int
Describes what triggered an autonomous batch sync (the cause of a
MoEngageSDKEventSyncSuccess or MoEngageSDKEventSyncFailure event).
-
Foreground periodic sync (running while the app is foregrounded).
Declaration
Swift
case foregroundPeriodic -
App-terminate sync. Not emitted on iOS —
willTerminateNotificationis unreliable (suppressed for force-quit, suspend-kill, crashes). The case exists for type-level parity with other platforms.Declaration
Swift
case appClose -
Background sync (combines previous backgroundPeriodic + backgroundFallback paths).
Declaration
Swift
case background -
Customer-initiated sync via
MoEngageSDKAnalytics.flush(...).Declaration
Swift
case manual -
Sync triggered by an identity change (login / logout / user-change).
Declaration
Swift
case userChange -
Any trigger that doesn’t fit the categories above.
Declaration
Swift
case other