Official iOS (Swift) Tracking Library for Mixpanel Analytics
Starting from this version, we have added a new optional boolean parameter performFullFlush to the flush() method. Default to false
, a partial flush will be executed for reducing memory footprint. The updated flush() is as follows:
/*
- parameter performFullFlush: A optional boolean value indicating whether a full flush should be performed. If `true`,
- a full flush will be triggered, sending all events to the server. Default to `false`, a partial flush will be executed
- for reducing memory footprint.
- parameter completion: an optional completion handler for when the flush has completed.
*/
public func flush(performFullFlush: Bool = false, completion: (() -> Void)? = nil)
This major release removes all remaining calls to Mixpanel's /decide
API endpoint. The main effect of this is that the SDK no longer fetches the remote status of your project's "Automatically collect common mobile events" setting. From this version forward, automatic event tracking can only be controlled by the, now required, parameter trackAutomaticEvents
. Upon upgrading, existing implementations will need to add this parameter to their Mixpanel initializer calls.