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启动后会主动去请求权限并弹窗提醒

  • 相关阅读:
    1.8新特性
    线程池
    微服务简介
    缓存三大问题
    Redis分布式锁的正确实现方式
    【java-10&11&12】java语言(Hello World相关)
    【postman】postman 安装失败
    【java-04-09集】JDK的下载和安装&配置环境变量(临时和永久)&命令行方式
    【ISTQB】TM&TA&TTA区别
    【git】学习地址
  • 原文地址:https://www.cnblogs.com/qqcc1388/p/15748389.html
Copyright © 2011-2022 走看看