美文网首页
因为iOS 15.3.1无法弹出广告追踪权限弹框被拒

因为iOS 15.3.1无法弹出广告追踪权限弹框被拒

作者: sws1314 | 来源:发表于2022-03-23 09:24 被阅读0次
    Guideline 2.1 - Information Needed
    
    
    
    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 15.3.1.
    
    Next Steps
    
    Please explain where we can find the App Tracking Transparency permission request in your app. The request should appear before any data is collected that could be used to track the user.
    
    If you've implemented App Tracking Transparency but the permission request is not appearing on devices running the latest OS, please review the available documentation and confirm App Tracking Transparency has been correctly implemented.
    
    If your app does not track users, update your app privacy information in App Store Connect to undeclare tracking. You must have the Account Holder or Admin role to update app privacy information.
    
    Resources 
    
    - Tracking is linking data collected from your app with third-party data for advertising purposes, or sharing the collected data with a data broker. Learn more about tracking. 
    - See Frequently Asked Questions about the new requirements for apps that track users.
    - Review developer documentation for App Tracking Transparency.
    
    

    提示在手机系统版本为15.3.1上无法弹框, 在iOS 14的系统上可以正常弹出, 只需将弹框代码移到AppDelegate的applicationDidBecomeActive方法中就可以解决:

    - (void)applicationDidBecomeActive:(UIApplication *)application{
        /// 弹出广告追踪权限弹框
        if (@available(iOS 14, *)) {
            [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
                NSLog(@"status = %lu",(unsigned long)status);
                if (status == ATTrackingManagerAuthorizationStatusAuthorized) {
                    // 后续操作
                }
            }];
        }
    }   
    

    相关文章

      网友评论

          本文标题:因为iOS 15.3.1无法弹出广告追踪权限弹框被拒

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