MoEngageSDKEventSyncFailure
@objc(MoEngageSDKEventSyncFailure)
public class MoEngageSDKEventSyncFailure : MoEngageSDKEvent, @unchecked Sendable
A background batch sync failed. Carries the failure and whether the SDK plans
to retry; permanently-dropped batches arrive with willRetry == false.
-
What triggered this sync (manual flush, foreground periodic, background, etc.).
Declaration
Swift
@objc public let syncType: MoEngageEventSyncTriggerType -
The failure that caused the sync to fail.
Declaration
Swift
@objc public let error: MoEngageRequestFailure -
trueif the SDK plans to retry this batch (transient failure);falseif the batch is permanently dropped.Declaration
Swift
@objc public let willRetry: Bool -
Number of attempts that have been made for this batch so far.
1on the first failure (post-increment from internal storage),2after one retry, etc. Capped by the remote-configmaxReportsSyncRetryCount(default 1000) after which the batch is permanently dropped.Declaration
Swift
@objc public let retryAttempt: Int -
Identifier of the batch that failed to sync.
Declaration
Swift
@objc public let batchId: String