R
R
Roman Gogolev2019-06-03 16:31:41
satellite navigation
Roman Gogolev, 2019-06-03 16:31:41

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

2 answer(s)
M
Moskus, 2019-06-03
@Moskus

https://developer.android.com/training/monitoring-...

A
Artem Voronov, 2019-06-03
@newross

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 question

Ask a Question

731 491 924 answers to any question