Support for children's apps (iOS)

If you have an app for kids, use the appForKids property of the YMMYandexMetricaConfiguration configuration. This property defines the application type as “children's” to match the rules for checking children's apps.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    // Creating an extended library configuration.
    YMMYandexMetricaConfiguration *configuration = [[YMMYandexMetricaConfiguration alloc] initWithApiKey:@"API_key"];
    // Setting up the configuration.
    configuration.appForKids = YES;
    // Initializing the AppMetrica SDK.
    [YMMYandexMetrica activateWithConfiguration:configuration];
Copied to clipboard
Note. If this option is enabled, the AppMetrica SDK doesn't send advertising IDs or location information.