shernandezp / XamarinForms.LocationService

MAUI Background Services, Background Location Updates, Location Updates, BroadCastReceiver
https://github.com/shernandezp
Apache License 2.0
71 stars 25 forks source link

My Android OS 10 sample code of this working properly with 2 seconds refresh, but mobile phone lock and idle mode with screen off GPS track only 6 or 8 time in a Minute. Please help to fix this. #6

Closed JanakaND closed 3 years ago

JanakaND commented 3 years ago

My Android OS 10 sample code of this working properly with 2 seconds refresh, but mobile phone lock and idle mode with screen off GPS track only 6 or 8 time in a Minute. Please help to fix this.

shernandezp commented 3 years ago

I invite you to understand the source code, test it, and to read the other threads before asking questions. You will see that @ormesam points to a workaround for some devices that block the background service in Android.

ormesam commented 3 years ago

On Android, if you want to receive location updates while the app is minimised and/or screen locked you need a foreground service (with the type set to Location or some phones will kill the it).