Running an app in background – timer

Running an app in background – timer

BY 18 Feb 2017 Web Application Development

Hi

I am creating a timer app which does time laps.
​I could set the app to foreground all the time, so it will not quit, but that is unnecessary battery consuming.

But when I go to another app, my app gets quit after some few minutes running in the background…

How can I prevent that? It is running a timer and using GPS data (which it should also in the background)

Thanks

Written by