AppStore审核问题记录

2021/04/29

Guideline 5.1.2 - Legal - Privacy - Data Use and Sharing

We noticed you do not use App Tracking Transparency to request the user's permission before tracking their activity across apps and websites. The app privacy information you provided in App Store Connect indicates you collect data in order to track the user, including Device ID.

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:

iOS14开始获取IDFA必须使用AppTrackingTransparency框架来请求用户允许其跟踪或访问其设备的广告标识符的权限。

解决方法:
1、在info.plist添加如下代码

<key>NSUserTrackingUsageDescription</key>
<string>请允许“***”获取并使用您的活动跟踪,以便于向您进行个性化推送服务,从而减少无关服务对您造成的打扰</string>

2、获取IDFA代码

import AdSupport
import AppTrackingTransparency

class func getIDFAString() -> String {
    var idfa: String = ""
    let manager = ASIdentifierManager()
    if #available(iOS 14.0, *) {
        ATTrackingManager.requestTrackingAuthorization { (status) in
            if status == .authorized {
                idfa = manager.advertisingIdentifier.uuidString
            }
        }
    } else {
        if manager.isAdvertisingTrackingEnabled {
            idfa = manager.advertisingIdentifier.uuidString
        }
    }
    return idfa
}
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容