Answer the question
In order to leave comments, you need to log in
Can GPS watchPosition() run in the background on androids?
Greetings.
I tried a lot of different developments like this one: https://www.npmjs.com/package/cordova-plugin-socra...
I just can't get the application to send coordinate data to the server in the background.
In almost all cases, it turns out to send data only once during the minimization of the application, and then the GPS goes out and nothing happens.
Something suggests that it’s possible that it’s impossible to make GPS work in the background at all (namely, watchPosition, that is, constant tracking, send data in the background, for example, every 5 seconds), is that so?
Answer the question
In order to leave comments, you need to log in
Currently, this is only possible when starting the service via startForeground().
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question