Guideline 2.1 - Information NeededWe continue to find that your app uses the AppTrackingTransparency framework, but we are unable to locate the App Tracking Transparency permission request when reviewed on iOS 15.0.
1、大概意思是在iOS15上没有做权限请求,可是我在info.plist里添加了Privacy - Tracking Usage Description配置,并且iOS15之前一直都是正常的,有些无语。。。
2、国内的有些文章说如果没用到ATTrackingManager获取的参数,就直接删了,可是我们的项目中用到IDFA,没办法不能直接删
后来看到国外的一则评论给了处理方案
We were facing this same issue. We were calling the ATT request from our first ViewController'sviewDidLoadmethod, and the popup was not being shown on iOS15 (but working perfectly on iOS14).
We've changed to call the request from the AppDelegate'sapplicationDidBecomeActivemethod and it worked! The popup is being presented on the first app launch on iOS15.
所以解决方案:请求获取权限的授权方法从didFinishLaunchingWithOptions中转移到applicationDidBecomeActive方法中即可, 同时注意不要跟注册通知、获取位置等权限弹框有冲突,确保ATTrackingManager请求弹框能弹出来。
备注:通过此方案我已经重新提交,并审核通过了哦!
** 码字不易,您的点赞/关注/赞赏将是我写作分享的动力!**