capacitor-community / background-geolocation

A Capacitor plugin that sends you geolocation updates, even while the app is in the background.
MIT License
187 stars 57 forks source link

A phone call or battery saver stops sending location to the server #70

Closed namanambavi closed 2 years ago

namanambavi commented 2 years ago

The geolocation works in the background but when the device gets a phone call, the plugin stops sending an API request using the native HTTP module to the server. The notification is still seen on the device but we do not get the location pings.

Any solutions?

diachedelic commented 2 years ago

What device and operating system are you using?

namanambavi commented 2 years ago

It’s a Vivo phone running on Android 10

jamesdiacono commented 2 years ago

Do you have any other devices to test on? Perhaps the issue is device specific?

namanambavi commented 2 years ago

This issue looks like it's prevalent on all Vivo Device

diachedelic commented 2 years ago

Is the battery optimization feature definitely turned off?

namanambavi commented 2 years ago

Yes, We have checked this twice and the optimization is off

diachedelic commented 2 years ago

I'm sorry, but I don't have a Vivo device to debug with. If you find a solution, please let me know.