mixpanel / mixpanel-swift

Official iOS (Swift) Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
434 stars 234 forks source link

Check if automatic events flag is set before flushing #526

Closed jaredmixpanel closed 2 years ago

jaredmixpanel commented 2 years ago

In the event that the trackAutomaticEvents flag has not been set, either in the initializer or by a /decide response, we will not flush any automatic event and instead hold them in the queue until one of the flags is set and upon next flush, we will discard them if the flag is false or flush them if the flag is true.