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上沒有做權(quán)限請求妻顶,可是我在info.plist里添加了Privacy - Tracking Usage Description配置队贱,并且iOS15之前一直都是正常的降铸,有些無語兔朦。偷线。。
2烘绽、國內(nèi)的有些文章說如果沒用到ATTrackingManager獲取的參數(shù)淋昭,就直接刪了,可是我們的項目中用到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.
所以解決方案:請求獲取權(quán)限的授權(quán)方法從didFinishLaunchingWithOptions中轉(zhuǎn)移到applicationDidBecomeActive方法中即可翔忽, 同時注意不要跟注冊通知、獲取位置等權(quán)限彈框有沖突盏檐,確保ATTrackingManager請求彈框能彈出來歇式。
備注:通過此方案我已經(jīng)重新提交,并審核通過了哦胡野!
** 碼字不易材失,您的點贊/關(guān)注/贊賞將是我寫作分享的動力!**