ios - 我的 iOS 应用程序的位置服务声明有问题

标签 ios app-store app-store-connect location-services

几天前,当我使用 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 权限,并设置值,为什么你想一直使用位置服务。

enter image description here

2) 如果你只是需要当用户在这段时间内使用应用程序时使用定位服务。您应该使用 NSLocationWhenInUseUsageDescription 而不是 NSLocationAlwaysUsageDescription 权限,并且您还应该设置为什么要使用该权限的描述。

关于ios - 我的 iOS 应用程序的位置服务声明有问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41343555/

相关文章:

ios - Kofax Capture Mobile SDK 是否有适用于 iOS 的试用版?

ios - 由于应用商店中的 Info.plist 文件中缺少目的字符串而被拒绝 react native iOS 应用

iphone - 如何检测用户是否在浏览器中安装了 iOS 应用程序 - 如帖子中的示例站点

iphone - 是否可以在应用商店切换回旧版本的应用?

ios - Cocoa Pods 未在应用程序内部更新

ios - sqlite3_open 实现在 iOS 6 中发生了变化

iphone - 将应用提交到Appstore时出错

ios - 上传二进制文件后更改元数据

app-store-connect - 如何从构建中删除测试组?

ios - SoundCloud API 流质量