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 Adjust.setOfflineMode method and pass a true parameter. To deactivate offline mode, call the Adjust.setOfflineMode method and pass a false parameter. When you deactivate offline mode, the Adjust SDK will send all saved information to the Adjust backend.

Java
Javascript
Adjust.setOfflineMode(true); // Enables offline mode
Adjust.setOfflineMode(false); // Disables offline mode
Important:
Unlike disabling tracking, the offline mode setting is not remembered between sessions. The SDK will always start in online mode even if you toggled offline mode in the previous session.

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 Adjust SDK sends to the backend. Use the AdjustConfig.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.

Java
Javascript
adjustConfig.setEventBufferingEnabled(true);