How do you keep a program that requires access to GPS data running in the background?

I am running a Galaxy Note 4 with Android 5.1.1 installed on it. I have a program that sends positional data back to a SQL server at head office. The positional information is required to assist in locating mobile workers to allocate jobs. So the app needs to continue running even if the app is running in the background. At the moment it works fine when on the screen but as soon as you launch another app it can no longer access the GPS data and though it continues to transmit data in the background it sends the same data on every update until you bring the app back on the screen when it starts to transmit the data correctly again.

Show Accepted Answer

Guest Quick Reply (No URL, BBcode or HTML)

Last post by janiya.hand
1 hour ago
Last post by cheyenne.johns
1 hour ago
Started by barton.darion
Last post by citlalli.jakubowski
49 minutes ago
Last post by drenner
2 hours ago
Last post by lynch.alana
45 minutes ago
Last post by adell.walker
4 hours ago
Last post by selmer36
4 hours ago
Last post by cruickshank.caterina
3 hours ago
Last post by edwin11
3 hours ago