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];
}
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : AnyObject]? = nil) -> Bool {
    // Creating an extended library configuration.
    let configuration = YMMYandexMetricaConfiguration.init(apiKey: "API key")
    // Setting up the configuration.
    configuration?.appForKids = true
    ...
    // Initializing the AppMetrica SDK.
    YMMYandexMetrica.activate(with: configuration!)
    return true
}

Note

If this option is enabled, the AppMetrica SDK doesn't send advertising IDs or location information.

See also

If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

Contact support