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.
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.