gpt4 book ai didi

swift - 您的应用包含 NSUserTrackingUsageDescription,表示您将请求跟踪用户的权限

转载 作者:行者123 更新时间:2023-12-03 14:06:16 25 4
gpt4 key购买 nike

我添加了 Google Admob 框架,用于在应用程序中显示广告并在 iTunes 连接应用程序隐私部分中获取与用户跟踪使用相关的错误。 iTunesConnect 不允许提交应用程序。
之后,我在 info.plist 中有正确的 key 和描述。

<key>NSUserTrackingUsageDescription</key>
<string>App would like to access IDFA for tracking purpose</string>
并且还添加了在登录页面请求权限的代码并在viewDidLoad中调用它。
    func requestPermission() {
if #available(iOS 14, *) {
ATTrackingManager.requestTrackingAuthorization { status in
switch status {
case .authorized:
// Tracking authorization dialog was shown
// and we are authorized
print("Authorized")

// Now that we are authorized we can get the IDFA
print(ASIdentifierManager.shared().advertisingIdentifier)
case .denied:
// Tracking authorization dialog was
// shown and permission is denied
print("Denied")
case .notDetermined:
// Tracking authorization dialog has not been shown
print("Not Determined")
case .restricted:
print("Restricted")
@unknown default:
print("Unknown")
}
}
} else {
// Fallback on earlier versions
}
}
但是在上传新版本后,iTunesConnect 仍然没有出现错误,我无法提交版本。
有人遇到过同样的事情吗?
如何隐藏此错误>

enter image description here

最佳答案

如果您要为广告和/或第三方库收集用户数据,则只需使用 info.plist 中的 NSUserTrackingUsageDescription 属性。
如果您将信息保留在您的应用程序中,或出于身份验证的目的,您不是在跟踪;因此,您不需要此属性。 (我希望我已经正确解释了这一点。)
换句话说,您在 App Store Connect 的 App Privacy 部分提供的信息与 info.plist 中的 NSUserTrackingUsageDescription 属性不一致。

关于swift - 您的应用包含 NSUserTrackingUsageDescription,表示您将请求跟踪用户的权限,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/65479420/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com