美文网首页
Guideline 2.1 - Information Need

Guideline 2.1 - Information Need

作者: 倒着游的鱼 | 来源:发表于2023-05-07 09:44 被阅读0次

    We're looking forward to completing our review, but we need more information to continue. Your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 16.4.1.

    把 IDFA 的代码写到这里就可以了!

    - (void)applicationDidBecomeActive:(UIApplication *)application {
        
      ASIdentifierManager *manager = [ASIdentifierManager sharedManager];
        if (@available(iOS 14, *)) {
            [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
                if (status == ATTrackingManagerAuthorizationStatusAuthorized) {
                    idfa = [[manager advertisingIdentifier] UUIDString];
                }
            }];
        }else{
            if ([manager isAdvertisingTrackingEnabled]) {
                idfa = [[manager advertisingIdentifier] UUIDString];
            }
        }
    }
    

    相关文章

      网友评论

          本文标题:Guideline 2.1 - Information Need

          本文链接:https://www.haomeiwen.com/subject/yxphsdtx.html