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

版权声明:本文版权归作者所有,遵循 CC 4.0 BY-SA 许可协议, 转载请注明原文链接
https://www.cnblogs.com/qqcc1388/p/15748389.html

加载GIF图片优化方案-编程思维

前言 许多项目需要加载GIF图片,但是在直接使用UIImageView加载存在许多问题,于是查找资料做了一个加载GIF的Demo,思路来源。 思路 使用FLAnimatedImage来加载GIF图片,再利用SDWebImage来做缓存,话不多说,直接上代码。 使用方法 导入头文件#import "GIFView.h"

iOS开发之HTTP断点续传-编程思维

前言 在APP中经常会遇到文件下载,鉴于用户体验和流量控制,就需要用到断点续传。本文主要对断点续传进行了多线程封装。 效果图 原理 HTTP实现断点续传是通过HTTP报文头部header里面设置的两个参数Range和Content-Range实现。 HTTP文件断点续传理论 代码部分 一、文件大小记录 在下载文件

【已开源】Flutter 穿山甲广告插件的集成-FlutterAds-编程思维

前言 上篇文章我们聊了国内各大广告平台对 Flutter 的支持程度和我为什么创建 FlutterAds 来构建优质的 Flutter 广告插件,帮助开发者获利。本篇我们来看看Flutter 穿山甲广告插件 flutter_pangle_ads 的集成和使用。 移动端广告形式 在移动端大体分为 5 种广告形式,分别是

字节跳动 iOS Heimdallr 卡死卡顿监控方案与优化之路-编程思维

👉 点这里申请   本文主要介绍Heimdallr对卡死、卡顿异常的监控原理,并结合长时间的业务沉淀发现的问题进行不断迭代和优化,逐步实现全面、稳定、可靠的历程。   作者:字节跳动终端技术——白昆仑   前言 卡死、卡顿作为目前iOS App的重要性能指标,不仅影响着用户体验,更关系到用户留存、DAU等重要产品