Quick Links

Location services even after the app has been terminated

Perhaps first a bit of backstory. Our company is specialised in training Emergency Response Officers(ERO). And that comes with an app that has protocols to train with, along with that there are push messages that have some fictive emergency situation and they should answer how they are handling it.

At the moment, users can set their availability in the app via some kind of "in house"-button, so the Head ERO can see, via a datamanagement, if there are enough ERO's present within the building incase of a calamity. But a lot of users tend to forget to set their In-house.

So we are at a point where we are trying to automate it via Geolocation, we dont physically store the user's location in our database, but instead in the app we use Geofencing. So if a user is within a certain radius, he is set to in-house, otherwise he is not. If the app is open, the location updates work perfectly, and even if we background the app it works nicely, but if we terminate the app (press the home button twice and swipe the app up to terminate) the location updates stop. But we would like to have it check like once in 15 minutes.

We used the BackgroundLocationDemo on Github to get it to work properly, but still when we terminate the app, the location updates stop.

Now my question: How can we get the App or the OS to eventually wake up do a location check and go back to sleep? We have tried various things, even subscribing to events. but yet there is no data coming in on our server.

Posts

We have not found a solution to users terminating the app, since its not allowed to keep anything active in iOS, we actually removed the entire functionality from the app and moved to a different system.