To enable event batching, go to the Mobile Publish Settings and set the batch size to a value greater than 1. Events are dispatched when the number of events in the queue equals the batch size.
The dispatch of events can also be triggered based on the batch timeout setting. This setting ensures that, when the batch size is not reached, the queue is still dispatched after an elapsed period of time. Set the batch timeout by calling the method setSecondsBeforeBatchTimeout().
To override the batch size and batch timeout checks, flush the queue immediately by calling the method requestFlush().
If the device is offline or has the Consent Manager enabled, the flush override has no effect.