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
  • true if the SDK plans to retry this batch (transient failure); false if the batch is permanently dropped.

    Declaration

    Swift

    @objc
    public let willRetry: Bool
  • Number of attempts that have been made for this batch so far. 1 on the first failure (post-increment from internal storage), 2 after one retry, etc. Capped by the remote-config maxReportsSyncRetryCount (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