本文介绍了苹果评论中如何处理背景模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我昨天已将我的应用上传到iTunes,我收到了来自苹果的一封邮件:

I have upload my app to itunes yesterday and i receive a mail from the apple that is:

来自Apple2. 5性能:软件要求准则2.5.4-性能-软件要求

From Apple2. 5 Performance: Software RequirementsGuideline 2.5.4 - Performance - Software Requirements

我们注意到,您的应用在Info.plist文件的UIBackgroundModes项中声明了对位置的支持,但没有任何需要持久位置的功能.具体来说,您的应用仅使用位置背景模式来跟踪员工,而这在App Store中是不合适的.

We noticed that your app declares support for location in the UIBackgroundModes key in your Info.plist file but does not have any features that require persistent location. Specifically, your app uses location background mode for the sole purpose of tracking employees, which is not appropriate on the App Store.

后续步骤

要解决此问题,请修改您的应用程序,使其包含一些附加功能,以供需要在后台运行时持续使用实时位置更新的用户使用.

To resolve this issue, please revise your app to include additional features for your users that require the persistent use of real-time location updates while the app is in the background.

如果跟踪员工的位置是您仅打算使用背景位置,则更适合通过批量购买计划"将您的应用程序作为自定义B2B应用程序进行分发和销售. iTunes Connect开发人员帮助中还提供了有关批量购买计划"和自定义B2B商店"的其他信息.

If tracking your employees' locations is your only intended use of background location, it would be more appropriate to distribute and sell your app as a custom B2B app through the Volume Purchase Program. Additional information about the Volume Purchase Program and the Custom B2B Store is also available in iTunes Connect Developer Help.

通过App Review请求打个电话

Request a phone call from App Review

根据您的要求,我们可以安排Apple代表在接下来的三个工作日内给您打电话,讨论您的App Review问题.

At your request, we can arrange for an Apple Representative to call you within the next three business days to discuss your App Review issue.

要请求电话并确保我们有准确的联系信息,请直接回复此消息,并提供联系人姓名和直接电话号码.

To request a call and ensure we have accurate contact information, reply directly to this message with a contact name and direct phone number to reach you.

但是在我的应用程序中必须在后台获取位置.现在无论是在便笺中还是其他内容中回复我该怎么办?

But fetching location in background is compulsory in my app.now what should i do whether reply them in notes or anything else??

推荐答案

Apple对其后台模式使用策略非常严格.如果您的应用碰巧使用了任何可用的背景模式,则最好确保该应用通过选择背景模式为用户增加价值.

Apple is very much strict with its background mode usage policies. If your app happened to use any of the background modes available, you better be sure that app adds the value to the user by opting the background mode.

1.应用程序使用位置更改"执行一些后台操作(不向用户添加直接值)

如果您的应用仅使用用户位置更改来完成一些后台任务(例如将数据上传到服务器或试图使您的应用与此类服务器保持同步),则必须确保仅选择SignificantLocationChanges.

If your app uses user location changes just to do some background task (like uploading data to server or trying to keep ur app in sync with the server stuff like that), you must ensure you opt for SignificantLocationChanges only.

确保您的位置管理器正在通过使用观察到重要的位置更改

Make sure your location manager is observing significant location changes by using

[locationManager startMonitoringSignificantLocationChanges];

而不是使用[locationManager startUpdatingLocation];

使用startUpdatingLocation将导致您的应用持续监视用户位置的变化,并导致电池电量耗尽.苹果不喜欢使用哪种方法,因为您的应用程序没有直接使用位置数据.

Using startUpdatingLocation will cause your app continuously monitor user location changes and will result in battery drain out. Which anyway is not appreciated by apple as your app is not using the location data directly.

2.使用位置"更改并为用户增加价值的应用(如地图应用)

另一方面,如果您的应用需要持续监控用户位置,并且您的应用使用用户位置实际为用户增加价值(例如跟踪用户并在地图中显示),则可以使用[locationManager startUpdatingLocation];

If your app on the other hand needs to monitor user location constantly and your app uses user location to actually add value to user like tracking user and showing it in map or something like that, you can use [locationManager startUpdatingLocation];

但是,因为startUpdatingLocation使您的应用程序监视器位置不断变化,所以请确保正确设置distanceFilterdesiredAccuracy,并且不要不必要地利用位置背景模式.

But because startUpdatingLocation makes your app monitor location changes constantly, make sure you set distanceFilter and desiredAccuracy properly and does not exploit the location background mode unnecessarily.

最后:

  1. 确保将Privacy - Location Always Usage Description键添加到info.plist中,并提供详细的文字说明用户为什么您的应用程序会使用其位置信息.

  1. Make sure you add Privacy - Location Always Usage Description key to your info.plist and provide a detailed text explaining user why is your app uses his location info.

返回itunesConnect帐户,详细说明您的应用为何使用位置背景模式,以及它如何为用户增加价值,并提供查看其在应用中的体现的步骤.

Go back to itunesConnect account, write a detailed explanation as to why is your app using location background mode and how it adds value to user and provide the steps to see how it reflects in app.

希望它会有所帮助.

这篇关于苹果评论中如何处理背景模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 11:25