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. Development data is uploaded to mParticle every 10 seconds to enable efficient testing, while production data is uploaded every 10 minutes by default.
Production data is also immediately uploaded:
- as soon as possible on the first session for a client, to ensure that install events are immediately available
- whenever the app is sent to background
- whenever a Commerce event is logged
- whenever a session ends
Note that this may be after a user navigates away from your app according to the configured session timeout
You can force an upload with the upload
method, or configure a different upload interval with the uploadInterval
option.