Android 10 introduces new background geolocation runtime permission ACCESS_BACKGROUND_LOCATION
Please add support this permission.
Without it, there is no option "Allow all the time"
1.
2.
3.
4.
need this
I created fork to solve this issue. (And it also fixes Gradle4 issue)
https://github.com/darron1217/react-native-background-geolocation
(Edit)
You can install it by command below
yarn add @darron1217/react-native-background-geolocation
@darron1217 Hello
I installed your fork.
But in it during installation the node_modules/@mauron85/react-native-background-geolocation/android/common folder is empty
@Adigezalov Did you try re-installing the package? (npm remove and npm install)
@darron1217 Yes of course. Repeatedly.
@Adigezalov What's your npm or yarn version?
(Edit)
yarn seems not supporting submodule.
https://github.com/yarnpkg/yarn/issues/1488
Hey guys, Any of you face the background location sending stops in lock screen on android 10 ?
@darron1217 This was indeed a problem in yarn. Thank you for your help
@darron1217 But my coordinates are not updated in the case of a killed application
@Adigezalov Did you select "Allow all" on dialog?
If then, submit an issue here
https://github.com/darron1217/react-native-background-geolocation/issues
@darron1217 yes I select "Allow all" on dialog
Open issue https://github.com/darron1217/react-native-background-geolocation/issues/1
Why it not working with yarn ? I had to use npm
@Adigezalov @guilhermeadsferreira I've uploaded it on npm.
Now you can install it by yarn add @darron1217/react-native-background-geolocation
(I changed package name, so you might need to change it on your code)
Most helpful comment
I created fork to solve this issue. (And it also fixes Gradle4 issue)
https://github.com/darron1217/react-native-background-geolocation
(Edit)
You can install it by command below