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啟動后會主動去請求權限並彈窗提醒


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM