Skip to content

Offline mode

Offline mode lets you pause all network activity for the SDK while still accumulating events locally. When offline mode is disabled again, cached events are flushed on the next scheduled send.

@objc public static func setOfflineModeEnabled(_ enabled: Bool)
@objc public static func isOfflineModeEnabled() -> Bool

AffiseAttributionLib/Classes/Affise.swift:79-90.

When offline mode is enabled, the SDK raises AffiseError.offlineModeEnabled internally (AffiseAttributionLib/Classes/errors/AffiseError.swift:3).

See also Events buffering for the 7-day retention window applied to cached events.