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

 

相信很多初期没广告的APP都不希望在安装APP后打开被提示“允许xxx跟踪您在其他公司的App和网站上的活动吗?”。

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第1张图片

而基于uni-app开发的iOS端APP默认是会包含获取IDFA,这样你提交App Store Connect审核时就必须修改App隐私标明使用收集哪些数据,这样在用户下载APP前就会在App Store的App隐私那里显示出来,并且在用户安装后打开应用会有上图的跟踪提示。
具体如何做到跟踪提示可以看DCloud社区的《iOS平台配置应用使用广告标识(IDFA)》,本文讲的是跟此文相反做法,这里摘取该文前两段相关内容:
12年9月份iOS6发布,IDFA面世,主要用于给开发者跟踪应用中广告的投放效果,但很多应用(或三方SDK)会获取IDFA作为设备唯一标识使用。
iOS14.5 发布之后,苹果要求应用获取 IDFA 时,需弹出用户许可收集跟踪数据的授权框,如果没有弹出授权框则可能会被App Store审核拒绝,提示违反5.1.2规则:

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第2张图片

Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing


The app privacy information you provided in App Store Connect indicates you collect data in order to track the user, including Device ID. 

However, you do not use App Tracking Transparency to request the user's permission before tracking their activity.

Starting with iOS 14.5, apps on the App Store need to receive the user’s permission through the AppTrackingTransparency framework before collecting data used to track them. This requirement protects the privacy of App Store users.

Next Steps

Here are two ways to resolve this issue:

- If you do not currently track, or decide to stop tracking, 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 track users, you must implement App Tracking Transparency and request permission before collecting data used to track. When you resubmit, indicate in the Review Notes where the permission request is located.

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.
- Learn more about designing appropriate permission requests.





Bug Fix Submissions


If this is a bug fix submission and you'd like to have it approved at this time, reply to this message in Resolution Center to let us know. You do not need to resubmit your app for us to proceed.

Alternatively, if you'd like to resolve these issues now, please feel free to resubmit. Let us know if you have any questions about the issues we found in our review.

You may appeal your app rejection if you believe this decision was made incorrectly. We also invite you to provide feedback on our review guidelines.

再说一次本文讲的是如何不提示跟踪!主要涉及改动代码依赖库及Info.plist配置文件和App隐私。
依赖裤,主要去掉liblibAdSupport.a,uni-AD 或 依赖三方SDK的功能模块(包含:新浪微博登录和分享、一键登录、友盟统计)等也要去掉。

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第3张图片

Info.plist配置,删除Privacy-Tracking Usage Description等包含广告的配置。

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第4张图片

App隐私,如果你之前已经按照上面那篇文章的设置并通过了App Store Connect审核,但你的APP又没做加入广告,这时再改不收集数据会提示App包含NSUserTrackingUsageDescription无法设置App隐私为不收集数据。

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第5张图片

这是App Store Connect的一个bug,这个时候得在提交审核的备注说明一下,然后等审批通过后才能设置App隐私的数据类型为不收集数据。

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第6张图片

通过之后安装打开你的APP就不会有跟踪提示了,App Store也将显示未收集数据。

基于uni-app开发的iOS端APP去掉跟踪提示并通过App Store Connect审核_第7张图片

原文链接:https://www.xubingtao.cn/?p=3858

关注我的公众号每天为你分享各类有用信息。

更多内容请访问我的其他端:

 

你可能感兴趣的:(iOS,经验,AppStoreConnect,iOS,uni-app,APP跟踪,IDFA)