pmwisdom/cordova-background-geolocation-services

Plugin seems to have stopped working

Opened this issue · 1 comments

I was updating my application on Thursday last week and the code that has been working for the last 18 months or so just stopped working. I get great updates until the app goes into the background then nothing. Watching it using the Chrome debugger I see it getting pushed into the background and calling the bgLocationServices.start(); and then calling bgLocationServices.stop(); when returning to the foreground. I'm using it on a pixel. I updated to the latest android sdk and the latest version of your code. Any ideas? My next move is to migrate it to java and leave cordova behind.

@richbell00 Thats very odd, there haven't been any recent Android changes to the plugin. Did you upgrade this plugins version or just the cordova version of your app? (which version did you come from?)

My only advice is to try and start background location services before you actually go into the background, maybe there is some race condition occurring between a background listener.