The SDK can track a user’s location by automatically logging location information with each event. Location tracking is disabled by default. To enable it, your application can call the
logLocationWithEvents: selector. You only need to call this selector once and we recommend that you call it before configuring the SDK:
[MEDIOEVENT logLocationWithEvents:YES]; [MEDIOEVENT configureWithAPIKey:API_KEY];
When your application enables location tracking, the SDK will obtain latitude and longitude information accurate to roughly the city level. The SDK will only check for new location information periodically using the most conservative method in terms of battery consumption. Note that you need to add
CoreLocation.framework to your Xcode project to enable location tracking.