Developers
To save bandwidth, mParticle does not always immediately send each event as it is generated. Instead we upload batches of events according to set rules.
The SDK always uploads:
You can force an upload with the upload
method.
[[MParticle sharedInstance] upload];
MParticle.sharedInstance().upload()
If none of the above conditions occur, the SDK allows a maximum interval to elapse before the next upload. This interval is configurable, defaulting to every ten seconds in development, and ten minutes in production.
//set upload interval in seconds
[[MParticle sharedInstance] setUploadInterval:30];
MParticle.sharedInstance().uploadInterval = 30
Was this page helpful?