Delay information sending

Offline mode

If you need to pause the sending of event and session data to the backend, you can put the Adjust SDK in offline mode. When in offline mode, the Adjust SDK will store all information in a file on the device. The Adjust SDK will send this information to the Adjust backend once it comes back online.

To activate offline mode, call the setOfflineMode method and pass a true parameter. To deactivate offline mode, call the setOfflineMode method and pass a false parameter. When you deactivate offline mode, the Adjust SDK will send all saved information to the Adjust backend.

Objective-C
Swift
Javascript
[Adjust setOfflineMode:YES]; // Enables offline mode
[Adjust setOfflineMode:NO]; // Disables offline mode
Important:
Unlike disabling tracking, the offline mode setting is not remembered between app launches. The Adjust SDK will always start in online mode even if you toggled offline mode when the app was last open.

Event buffering

If you use event tracking extensively in your app, you may want to schedule the sending of events. Doing this will reduce the number of requests that the SDK sends to the backend. Use the eventBufferingEnabled method to store events in a buffer. The Adjust SDK will then send these events in a batch every minute. This means that you will send all event data in a smaller number of requests.

Objective-C
Swift
Javascript
[adjustConfig setEventBufferingEnabled:YES];