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.0.2.
网上找了下方法,都说是iOS15的bug,在
func application(_application:UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey:Any]?) ->Bool{
}
func applicationDidBecomeActive(_application:UIApplication) {
}
这两个里面都加入了下面的请求
if #available(iOS 14.0, *) {
DispatchQueue.main.asyncAfter(deadline: .now() +1) {
ATTrackingManager.requestTrackingAuthorization{ (status)in
}
}
}else{
if ASIdentifierManager.shared().isAdvertisingTrackingEnabled{
advertisingId =ASIdentifierManager.shared().advertisingIdentifier.uuidString
print(" 低于 iOS 14.0 advertisingId : ",advertisingId)
}else{
}
}
info.plist 里确认有跟踪权限请求描述文字
<key>NSUserTrackingUsageDescription</key>
<string>此标识符将用于向您推荐个性化广告。</string>
但还是一直都不弹
最后发现要在测试机上打开跟踪请求按钮,不然自己早就成功了也不知道。。。。
总弹窗不成功的小伙伴们也看看自己测试手机的允许APP请求跟踪开关开没开
因为这个卡好久也真的是。。。。。
注意:
1、如果关闭列表中对应的应用的开关,再开启,该应用的idfa值不变;
2、如果关闭总跟踪开关(“允许App请求跟踪”)再开启,则应用的开关需要单独开启,且应用的idfa值会改变;
如果喜欢或者有帮助,请点个赞再走吧 么么哒