几天前,当我使用 Xcode 将我的应用程序的新版本上传到 App Store 时,我收到了来自 iTunes Connect 的以下电子邮件:
Subject: iTunes Connect: Your app AppName has one or more issues
Dear developer,
We have discovered one or more issues with your recent delivery for "AppName".
The following are for your information only and do not require any action:
We have detected that this build requires the use of standard location services when running in the background. Apps requiring location services will now display the following text disclaimer on the App Store. 'This app may use your location even when it isn’t open, which can decrease device battery life'.
Regards,
The App Store team
而且我上传的版本无法在 iTunes Connect 网站上选择提交评论。
我该如何处理这个问题?谢谢。
最佳答案
我很久以前就遇到过这个问题,这是因为,如果您的应用仍在后台使用位置服务,它可能会消耗电池。
1)如果你想一直使用定位服务,你应该设置这个,可以让你通过itunes验证:
你应该在你的 Info.plist
中添加 NSLocationAlwaysUsageDescription
权限,并设置值,为什么你想一直使用位置服务。
2) 如果你只是需要当用户在这段时间内使用应用程序时使用定位服务。您应该使用 NSLocationWhenInUseUsageDescription
而不是 NSLocationAlwaysUsageDescription
权限,并且您还应该设置为什么要使用该权限的描述。
关于ios - 我的 iOS 应用程序的位置服务声明有问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41343555/