Determining the location on iOS
- With the locationTracking option enabled
The location is determined with accuracy to the city.
The app requests GPS access. Battery consumption may increase.
- With the locationTracking option disabled
- The location is determined by the IP address with accuracy to the country.
The app requests GPS access. Battery consumption does not increase.Note. If you have enabled IP address masking, AppMetrica determines location with the accuracy to the country by the unmasked part of the IP address.
How to enable location determination
By default, the AppMetrica SDK is initialized with the enabled locationTracking option.
How to disable location determination
NOvalue for the locationTracking property of the YMMYandexMetricaConfiguration configuration:
// Creating an extended library configuration. YMMYandexMetricaConfiguration *configuration = [[YMMYandexMetricaConfiguration alloc] initWithApiKey:API_key]; // Disabling sending information about the device location. configuration.locationTracking = NO; // Initializing the AppMetrica SDK. [YMMYandexMetrica activateWithConfiguration:configuration];Copied to clipboard
[YMMYandexMetrica setTrackLocationEnabled:NO];Copied to clipboard