Answer the question
In order to leave comments, you need to log in
How to track position on a sleeping device?
We are developing an application that should continuously (once every few seconds) capture the current coordinates in order to send them to the server (position tracker) later. Now there is a problem - the coordinates are not removed if the phone's screen is off. The developer claims that the android system does not allow this, but other applications do it.
Tell me how to do it right.
Thank you.
Answer the question
In order to leave comments, you need to log in
https://developer.android.com/guide/background - here you can find the solution to your problem. Please note that there are limits on tracking in the background.
But the fact that the developer assures that this is impossible is a very bad signal. Perhaps it is worth looking for alternative developers who are not too lazy to read the documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question