Swift - Keep app alive.
This is not going to be easy, because Apple
Apparently we can trick iOS by forcing it to request location updates. Another interesting option is to define it as a media app and make it play a blank audio file every few seconds.