zoukankan      html  css  js  c++  java
  • iOS 审核被拒:2.1 App Tracking Transparency permission request

    提交app到appStore被拒

    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.2.
    
    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.
    

    大概意思是iOS15之后如果用到AppTrackingTransparency framework在app启动时需要弹窗活动跟踪申请 如下图:

    解决办法 在appdelegate中实现 -(void)applicationDidBecomeActive:(UIApplication *)application 方法并请求一次TrackingAuthorization权限

    #import <AppTrackingTransparency/AppTrackingTransparency.h>
    
    -(void)applicationDidBecomeActive:(UIApplication *)application{
        NSLog(@"应用程序已进入前台,处于活动状态");
         if (@available(iOS 14, *)) {
             [ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
                 
             }];
         } else {
             // Fallback on earlier versions
         }
    }
    

    这样在app启动后会主动去请求权限并弹窗提醒

  • 相关阅读:
    20201215第七周学习总结
    20201215王馨瑶第六周学习总结
    2020-2021-1 20201226 《信息安全专业导论》第七周学习总结
    2020-2021-1 20201226 《信息安全专业导论》第六周学习总结
    fibnacci数列递归实现
    求最大公约数伪代码
    2020-2021-1 20201226 《信息安全专业导论》第五周学习总结
    XOR 加密
    Pep9
    2020-2021-1 20201226 《信息安全专业导论》第四周学习总结
  • 原文地址:https://www.cnblogs.com/qqcc1388/p/15748389.html
Copyright © 2011-2022 走看看