Offline mode
Put the Adtrace SDK in offline mode to suspend network transmission while the SDK continues to record data locally. When you return to online mode, queued data is sent with the correct timestamps.
The initial install session is still sent even in offline mode.
Unlike disabling the SDK, offline mode does not stop the SDK from working. It only pauses HTTP requests.
Method signatures
Adtrace.switchToOfflineMode();
Adtrace.switchBackToOnlineMode();
Enable offline mode
Adtrace.switchToOfflineMode();
Return to online mode
Adtrace.switchBackToOnlineMode();
note
Offline mode is not persisted between page loads. Each new page load starts in online mode unless you call switchToOfflineMode() again after initSdk.