1.报错信息
The app privacy information you provided in App Store Connect indicates you collect data in order to track the user, including Precise Location, User ID, Crash Data, Device ID, Other Data Types, Product Interaction, Performance Data, Search History, and Other Diagnostic Data. 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.
谷歌翻译一下:
准则 5.1.2 – 法律 – 隐私 – 数据使用和共享
您在 App Store Connect 中提供的应用隐私信息表明您收集数据是为了跟踪用户,包括精确位置、用户 ID、崩溃数据、设备 ID、其他数据类型、产品交互、性能数据、搜索历史和其他诊断数据。但是,在跟踪用户的活动之前,您不会使用 App Tracking Transparency 来请求用户的许可。
从 iOS 14.5 开始,App Store 上的应用程序需要通过 AppTrackingTransparency 框架获得用户的许可,然后才能收集用于跟踪它们的数据。这一要求保护了 App Store 用户的隐私。
下一步
以下是解决此问题的两种方法:
– 如果您当前未跟踪或决定停止跟踪,请在 App Store Connect 中更新您的应用隐私信息。您必须具有帐户持有人或管理员角色才能更新应用隐私信息。
– 如果您跟踪用户,则必须实施 App Tracking Transparency 并在收集用于跟踪的数据之前请求许可。重新提交时,请在审核备注中指明权限请求所在的位置。
资源
– 跟踪是将从您的应用程序收集的数据与用于广告目的的第三方数据相关联,或与数据经纪人共享收集的数据。了解有关跟踪的更多信息。
– 有关跟踪用户的应用程序的新要求,请参阅常见问题解答。
– 了解有关设计适当权限请求的更多信息。
错误修复提交
如果这是一个错误修复提交,并且您希望在此时获得批准,请在解决中心回复此消息让我们知道。您无需重新提交您的应用程序即可让我们继续。 或者,如果您想立即解决这些问题,请随时重新提交。如果您对我们在审核中发现的问题有任何疑问,请告诉我们。
如果您认为此决定是错误的,您可以对您的应用被拒绝提出申诉。我们还邀请您就我们的审核指南提供反馈。
2.解决方案
2.1.停止跟踪
如果您当前未跟踪或决定停止跟踪,请在 App Store Connect 中更新您的应用隐私信息。
苹果回复已经说了,如果没有跟踪信息,就停用信息。
直接把app隐私里面的用于追踪您的数据,全部删掉就可以了。删除方式就是在你选择的哪一项,最后操作会问是否选择用于追踪您的数据,选择否,然后发布就行。
接着,我们在解决中心回复说我们已经去掉了信息,请重新审核,等2~3天就能审核通过。
2.2.AppTrackingTransparency
从 iOS 14.5 开始,App Store 上的应用程序需要通过 AppTrackingTransparency 框架获得用户的许可,然后才能收集用于跟踪它们的数据。
在工程中info.plist配置授权提示文案
<key>NSUserTrackingUsageDescription</key>
<string>此标识符将用于向您发送个性化广告。</string>
复制代码
实现代码
#import <AdSupport/AdSupport.h>
#import <AppTrackingTransparency/AppTrackingTransparency.h>
- (NSString*)idfa {
__block NSString *idfa = @"";
ASIdentifierManager *manager = [ASIdentifierManager sharedManager];
if (@available(iOS 14, *)) {
[ATTrackingManager requestTrackingAuthorizationWithCompletionHandler:^(ATTrackingManagerAuthorizationStatus status) {
if (status == ATTrackingManagerAuthorizationStatusAuthorized) {
idfa = [[manager advertisingIdentifier] UUIDString];
}
}];
}else{
if ([manager isAdvertisingTrackingEnabled]) {
idfa = [[manager advertisingIdentifier] UUIDString];
}
}
return idfa;
}
复制代码
在第一次授权的时候,就会弹出以下的框。
允许后,我们就可以在设置-隐私-跟踪中看到我们的授权开关。