Background geolocation when screen locked

Hi,
I am using the cordova plugin background geolocation from ionic native to be able to track my location in my app. I regularly send the location of the device to an external API.
This works quite well when I am not on the app but whenever I lock my screen, nohting happens and the location is no longer updated.
Is it a normal behaviour ? Would you have any clues on how to solve that ?
Thanks!

Hey plotop,

this Plugin is unmaintained and doesn’t work very well. There is only one Plugin that does what we want in this case: https://github.com/transistorsoft/cordova-background-geolocation-lt

For Android you have to buy a lincense there (you can test without). In our team we decided to buy it and it works perfect!

1 Like

Thanks ! I’ll check it out