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 Adtrace 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
[adtraceConfig setEventBufferingEnabled:YES];
adtraceConfig?.eventBufferingEnabled = true
adtraceConfig.setEventBufferingEnabled(true);