手机扫一扫访问本页内容

微信扫描点右上角"···"分享到好友或朋友圈

关闭
微信扫一扫可打开小程序

微信长按图片或搜“分享录”可打开小程序

关闭
iOS,经验 , , , ,

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

这是基于我的分享录iOS端APP写的实战经验文章,目前没有加入广告,大家可以在App Store搜索“分享录”下载浏览更多原创文章,同时也希望大家帮忙在App Store给个评分,​算是对作者最大的鼓舞吧。

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

而基于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规则:

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的功能模块(包含:新浪微博登录和分享、一键登录、友盟统计)等也要去掉。

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

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

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

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

同样用其他插件或原生开发只要去掉获取IDFA(各种广告插件或依赖第三方SDK,诸如一键登录、分享、统计等),然后App隐私设置为不收集数据安装后打开就不会提示有跟踪行为了。


历史上的今天:

展开阅读全文


上一篇:

下一篇:

您还可以访问本站的小程序、公众号等所有端,或者下载APP, 在小程序、APP上可以评论文章以及保存图片还有在线客服哦,如您有任何疑问或建议可向作者提出意见反馈
关注我的公众号每天为您分享各类有用信息
扫码打开小程序可评论文章保存图片,在“我的”有实时在线客服哦,看效果?
分享录多端跨平台系统
分享录交流群