1***@qq.com
1***@qq.com
  • 发布:2021-10-07 16:36
  • 更新:2021-10-19 10:08
  • 阅读:3896

【报Bug】无法适配 App Tracking Transparency,IOS15设备不弹出授权框

分类:uni-app

产品分类: uniapp/App

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: windos10 64位

HBuilderX类型: 正式

HBuilderX版本号: 3.2.9

手机系统: iOS

手机系统版本号: IOS 14

手机厂商: 苹果

手机机型: iPad mini 15.0.1

页面类型: vue

打包方式: 云端

项目创建方式: HBuilderX

示例代码:
  1. manifest.json文件 已开启广告标识(IDFA)
  2. 已填写NSUserTrackingUsageDescription ,和示例教程里的一样:distribute->ios->privacyDescription->NSUserTrackingUsageDescription: 请放心,开启权限不会获取您在其他站点的隐私信息,该权限仅用于标识设备并保障服务安全与提示浏览体验
  3. 多语言的也填写了:locales->zh->ios->privacyDescription->NSUserTrackingUsageDescription
  4. 已设置苹果App隐私

操作步骤:

使用HbuilderX云打包IOS的ipa包,上传ipa包到App store connect,使用testFlight测试

预期结果:

IOS15.0.1设备首次打开APP 可以弹出授权用户追踪弹框(App Tracking Transparency)

实际结果:

IOS15.0.1设备首次打开APP 无法弹出授权用户追踪弹框(App Tracking Transparency)
IOS15以下的设备可以弹出授权用户追踪弹框(IOS14.6)

bug描述:

问题描述

苹果IOS15.0.1 首次打开APP 无法弹出授权用户追踪弹框(App Tracking Transparency),导致苹果审核不通过。
IOS15以下的设备可以弹出授权用户追踪弹框
HBuilderX版本号:3.2.9.20210927

已参考官方教程:iOS平台配置应用使用广告标识(IDFA)

苹果审核回复信息

Regarding guideline 2.1, we still need 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.1.

Since you indicated in App Store Connect that you collect data in order to track the user, we need to confirm that App Tracking Transparency has been correctly implemented.

To resolve this issue, it would be appropriate to 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 your app does not track users, please update your app privacy information in App Store Connect. You must have the Account Holder or Admin role to update app privacy information.

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.

2021-10-07 16:36 负责人:无 分享
已邀请:
vijay123332

vijay123332

最新版本在ios15.0.2上可以正确弹窗 但是15.0.1上貌似不可以 因为还是被打回了 提示就是上述的15.0.1上未能显示弹出

chenli

chenli

有使用广告才需要开启广告标识IDFA的吧!
应用里是没找到 App Tracking Transparency 权限的请求。

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.

如何判断是否需要开启广告标识(IDFA)?
如果您的应用使用了uni-AD的三方广告SDK(360广告、穿山甲、优量汇、快手) 或 依赖三方SDK的功能模块(包含:新浪微博登录和分享、一键登录、友盟统计),这些SDK内会触发获取IDFA,所以打包时需要勾选开启 IDFA 标识。
一些uni原生插件也可能会读取IDFA,因此碰到App Store审核不通过,提示违反5.1.2规则且内容中包含App Tracking Transparency都可以通过配置开启广告标识(IDFA)解决。
uni-AD中的广告基础功能并不会访问IDFA,没有勾选三方广告SDK时不需要访问开启广告标识(IDFA)
注:对于非广告类的三方SDK,我们会密切关注其官方的版本更新,待官方出了不包含IDFA的版本我们会尽快适配升级

  • 1***@qq.com (作者)

    原来是这样,十分感谢!

    因为我之前的版本有带着IDFA去审核,我记得之前有一篇官方教程是说开启IDFA不影响苹果审核的。所以现在关闭IDFA,苹果那里修改不了APP隐私,说我的ipa包里包含了NSUserTrackingUsageDescription。

    我现在去联系苹果看看能不能他们那边改,感谢大佬!

    2021-10-08 15:05

  • chenli

    回复 1***@qq.com: ipa包里包含了NSUserTrackingUsageDescription 在manifest.json里去掉应该就可以

    2021-10-09 13:59

  • 1***@qq.com (作者)

    回复 chenli: 我manifest.json里已经去掉了NSUserTrackingUsageDescription,生成的ipa包里info.plist里面也已经没有了,但是苹果那里还是过不了,我看有些教程说是要去掉广告依赖库,还有info.plist里的DCLOUD_AD_ID什么的...,苹果审核新的回复是这样的:

    Thank you for your message. We appreciate your efforts to resolve this issue and to comply with the App Store Review Guidelines.

    The following resources may help you to manage the App Tracking Transparency in your app:



    • Review developer documentation for the AppTrackingTransparency framework.

    • See Frequently Asked Questions about App Tracking Transparency.

    • Ask fellow developers and Apple engineers a question in the Apple Developer Forums.

      We hope these resources are informative. We look forward to reviewing your future submissions to the App Store.


    相关链接:基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核

    https://www.xubingtao.cn/2021/06/20/uni-app_ios_idfa_app-tracking-transparency_app-store-connect/

    2021-10-10 02:56

  • 1***@qq.com (作者)

    回复 chenli: 我新测试里已使用了友盟统计,友盟后台可以正常获取数据,剩下按之前一样的步骤去打包ipa,ios15测试还是不弹授权追踪框,ios14.6可以弹

    2021-10-12 21:17

  • 7***@qq.com

    回复 1***@qq.com: 我和你的情况一样,请问你怎么解决的,我得审核都不通过

    2021-10-14 10:33

  • 1***@qq.com (作者)

    回复 7***@qq.com: 我也还没解决......编辑器HBuilderX3.2.10.20211013-alpha版,更新说明有修复这个问题,不过我还没测试,你也可以先试试看,有结果了麻烦告诉我一声,感谢

    2021-10-14 15:27

海鸥出行

海鸥出行

关注一下

海鸥出行

海鸥出行

HBuilderX3.2.10.20211013-alpha版 试过了,还是无法弹出追踪框,现在只能重新上架不勾选IDFA的ipa,和App Store沟通一下,楼主有结果回复一下

  • c***@vowkin.com

    我也是刚被打回来了 勾选了 还是不弹出提示框

    2021-10-15 09:49

  • 1***@qq.com (作者)

    HBuilderX3.2.10.20211013-alpha版我测试IOS15可以弹ATT授权框,我的使用步骤:官网下载alpha版-装插件-云打包ipa-测试,可以按官方教程一步步排查一下,看看具体是哪里的问题。

    2021-10-15 16:50

天生DR

天生DR - 接各种插件开发业务~

有问题的 都把UNI ID 发我 或者私信我

天生DR

天生DR - 接各种插件开发业务~

如果还有 问题

  1. 升级到HBuilderX 3.2.9
  2. 如果是cli 创建的项目 请升级cli版本与HBuilderX版本一致
  3. 如果两步之后还有问题 建议删除旧版HBuilderX 下载最新版本的HBuilderX
1***@qq.com

1***@qq.com (作者)

使用 HBuilderX3.2.10.20211013-alpha 版云打包,其他配置正常没问题后,云端打包ipa,经测试IOS15.0.1和IOS15.0.2可以弹出ATT授权框,现在正在测试苹果审核是否通过,感谢大家和官方的帮助!

  • y***@qq.com

    请问通过苹果审核了吗?

    2021-11-12 09:00

园满空间

园满空间

你好我的 ios也出现了因为App Tracking Transparency审核被拒的问题,可我按照https://ask.dcloud.net.cn/question/131993 在升级到了最新的3.2.10.20211013-alpha Hbuilderx 重新打包之后,iOS 15以上的系统还是不出现相应追踪弹窗,在 iOS 14 上是会出现的。

  • 1***@qq.com (作者)

    查看一下应用内是否有需要开启广告标识IDFA的sdk,具体参考官方教程的:第二步-如何判断是否需要开启广告标识(IDFA)?剩下的按照官方教程再试一下,https://ask.dcloud.net.cn/article/36107

    2021-10-18 15:15

该问题目前已经被锁定, 无法添加新回复