Tried to use the app with the example given in the homepage, geolocation did work but whenever app was in background it wasn't working. Debugged it comparing it to the react-native-background-geolocation-example repo, resulted that downgrading targetSdkVersion made it work.
It should work with targetSdkVersion = 28.
Background geolocation should still work in the background.
Updating the device's location in the background doesn't trigger any updates, even when background geolocation is still "running".
BackgroundGeolocation.on('location' ... method
Trying to use the background geolocation basic functionality.
Same issue here
@jl-ib do you found a work around for this issue ?
I have fixed the first issue by adding in the manifest, a new permission for the SDK 28
...
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
...
Ahh this is super helpful, solved the issue for me, thanks a lot @zimski :) how did you find this btw?
@zimski you got a Super Like! 馃槃
Anybody willing to submit a patch?
I am not sure about this fix, seems that working, but I do not have enough time to test it in more detail. Will do it soon.
@jl-ib you welcome !
By inspection the logs, by using adb logcat and read the long java exception.
Hopefully this one was easy to figure out.
Should we close this issue if it is resolved?
Closing, this has been fixed since...
Most helpful comment
I have fixed the first issue by adding in the manifest, a new permission for the
SDK 28