简体   繁体   English

在苹果市场的背景下使用nsTimer接受位置跟踪应用程序

[英]Acceptance of Location tracking app with nsTimer in background in apple market

I have created this location tracking app, that uses nstimer in background to fetch location every 4 mins. 我创建了这个位置跟踪应用程序,它在后台使用nstimer每4分钟获取一次位置。 I am wondering if there will be any problem in submitting the app in the market place.. If you know something regarding it, can you please let me know. 我想知道在市场上提交应用程序是否有任何问题。如果您对此有所了解,请告诉我。 Thanx. 感谢名单。

I've gotten one app through. 我已经通过了一个应用程序。 You have to make sure that the user is informed exactly as to what is going on. 您必须确保准确告知用户正在进行的操作。 So dialogs have to be very specific and have a privacy policy in place. 因此,对话必须非常具体,并制定了隐私政策。

4 minutes is a little bit extreme if that's a permanent state of your app.. I don't think Apple would allow that if they found it during app review. 4分钟有点极端,如果这是你的应用程序的永久状态..我不认为如果他们在应用程序审查期间发现它,Apple会允许这样做。 Would it not suffice to just have it updated based on movement? 根据运动进行更新是不够的? ie. 即。 the significant location change api? 重要的位置变化api?

The app I did this for used significant location change api for background location tracking and then stepped it up to higher frequency tracking if the app was actually open. 我这样做的应用程序使用重要的位置更改api进行背景位置跟踪,然后在应用程序实际打开时将其升级到更高频率的跟踪。

If it's relevant to what your app is doing I don't think it will be a problem. 如果它与您的应用正在做什么相关,我认为这不会是一个问题。
This is from Apple's App Store Review Guidelines : 这来自Apple的App Store评论指南

4.1 Apps that do not notify and obtain user consent before collecting, transmitting, or using location data will be rejected 4.1在收集,传输或使用位置数据之前未通知并获得用户同意的应用程序将被拒绝

4.2 Apps that use location-based APIs for automatic or autonomous control of vehicles, aircraft, or other devices will be rejected 4.2使用基于位置的API进行车辆,飞机或其他设备的自动或自动控制的应用程序将被拒绝

4.3 Apps that use location-based APIs for dispatch, fleet management, or emergency services will be rejected 4.3将拒绝使用基于位置的API进行调度,车队管理或紧急服务的应用程序

4.4 Location data can only be used when directly relevant to the features and services provided by the app to the user or to support approved advertising uses 4.4位置数据只能在与应用程序向用户提供的功能和服务直接相关或支持已批准的广告用途时使用

But pay attention that if you want your app to keep getting location updates even in background, you need to declare this in your plist file, otherwise when the app goes to background you won't be able to get location updates. 但请注意,如果您希望应用程序即使在后台也能继续获取位置更新,您需要在plist文件中声明这一点,否则当应用程序转到后台时,您将无法获得位置更新。

Declaring Your App's Supported Background Tasks 声明应用程序支持的后台任务

Support for some types of background execution must be declared in advance by the app that uses them. 必须由使用它们的应用程序事先声明对某些类型的后台执行的支持。 An app declares support for a service using its Info.plist file. 应用程序使用其Info.plist文件声明对服务的支持。 Add the UIBackgroundModes key to your Info.plist file and set its value to an array containing one or 将UIBackgroundModes键添加到Info.plist文件,并将其值设置为包含一个或的数组

location —The app keeps users informed of their location, even while it is running in the background. location - 即使在后台运行,应用程序也会让用户了解他们的位置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM