Apple拒绝,因为UIBackgroundMode = location [英] Apple rejection because UIBackgroundMode = location

查看:826
本文介绍了Apple拒绝,因为UIBackgroundMode = location的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我提交了一个应用程序,该应用程序以用户选择的固定间隔(5分钟,10分钟,30分钟,1小时)跟踪用户的位置(并将其发送到服务器)。该应用程序也应该在后台工作(发送请求),我已将其声明为 UIBackgroundMode = location 。我可以在后台以固定的间隔发送请求。 Apple拒绝了它,建议如下:

I submitted an app which tracks the user's location (and sends it to the server) at some fixed intervals chosen by the user (5 min, 10 min, 30 min, 1 h). The app should work in background, too (sending the requests) and I have declared it as UIBackgroundMode = location. I am able to send the requests while in background at those fixed intervals. Apple rejected it, suggesting the following:


我们发现您的应用使用后台模式,但不包含需要的
功能该模式持续运行。此
行为不符合App Store审核指南。

We found that your app uses a background mode but does not include functionality that requires that mode to run persistently. This behavior is not in compliance with the App Store Review Guidelines.

我们注意到您的应用声明支持您在
UIBackgroundModes键中的位置Info.plist但不包含需要持久位置的功能

We noticed your app declares support for location in the UIBackgroundModes key in your Info.plist but does not include features that require persistent location.

在应用程序在后台或
删除时,添加需要持续使用
实时位置更新的功能是合适的。来自UIBackgroundModes键的location设置。如果您的
申请不需要持久的实时位置更新,
我们建议使用重要更改位置服务或
区域监控位置服务。

It would be appropriate to add features that require persistent use of real-time location updates while the app is in the background or remove the "location" setting from the UIBackgroundModes key. If your application does not require persistent, real-time location updates, we recommend using the significant-change location service or the region monitoring location service.

有关这些选项的更多信息,请参阅位置感知编程指南中的启动
重大更改位置服务和监控基于形状的
区域部分。

For more information on these options, please see the "Starting the Significant-Change Location Service" and "Monitoring Shape-Based Regions" sections in the Location Awareness Programming Guide.

如果您选择添加使用位置背景模式的功能,
请在
申请说明中包含以下电池使用免责声明:

If you choose to add features that use the Location Background Mode, please include the following battery use disclaimer in your Application Description:

继续使用GPS在后台运行可以大大减少
的电池续航时间。

"Continued use of GPS running in the background can dramatically decrease battery life."

如果我更改了重要的位置更改并从 Info.plist 中删除​​ UIBackgroundMode 键,该应用将会在后台被杀,只有在事件发生时才会被唤醒。但是我必须每隔5分钟将请求发送到服务器,然后我的应用程序在后台被杀死(假设用户没有移动,事件不是 trigger = no 请求被发送到服务器)。

If I change significant location change and remove UIBackgroundMode key from Info.plist, the app will be killed in background and will wake up only if the event occurs. But I must send the request to server every 5 minutes for example and my app is killed in the background (let's say the user does not move and the event is not trigger = no requests are sent to server).

推荐答案

听起来苹果的抱怨是你的苹果认为你的应用没有需要才能使用背景位置。如果你想要做的是合法的 - 例如您的用户希望该应用在后台跟踪它们,这对他们来说很有用 - 您可以尝试解释在审核说明中需要进行位置跟踪的原因。

Sounds like apple's complaint is that your apple think that your app doesn't need to use background location. If what you're trying to do is legitimate - e.g. your user would expect the app to track them in the background and this is a useful thing to them - you could try explaining why location tracking is needed in the review notes.

这篇关于Apple拒绝,因为UIBackgroundMode = location的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆