How to do hourly location updates?

I am building a location-based application, but I hate having a location services icon. I only need coordinates once an hour, but I can’t figure out how to do this without saying that this is a VoIP application. Is it possible to do this in such a way that the App Store is acceptable?

+4
source share
2 answers

You can use location in UIBackgroundModes your application, see the documentation .

About the location service icon on, I think you should leave it. This is fair feedback for your user. The user should know that his position is being tracked and an icon is left for several seconds every time the geolocation actually occurs, will not be honest. (and that sounds like an application rejection case for me).

Until you have a negative effect on the device’s battery, the user will be grateful if you tell him that you are tracking his position.

For example, applications such as OpenPaths made my iPhone show the location icon all the time and did not have a real negative effect on the battery.

+1
source

I would register for significant updates to location changes. When updates occur, compare the timestamp with the latest update. Use update if delta time> 60 minutes. Worst case: I believe you will get a location indicator diagram. this tells the user that some kind of tracking is happening - but not all the time, so this is not a battery problem and you are not getting too many support requests. Best case: registering a significant location change update does not show an indicator diagram. But I'm not sure. Completely without an icon may just be impossible.

0
source

Source: https://habr.com/ru/post/1415295/


All Articles