react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Android 10 support

Open farruxx opened this issue 4 years ago • 14 comments

Your Environment

  • Plugin version: lastest
  • Platform: Android
  • OS version: 10

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"

Context

Expected Behavior

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Debug logs

farruxx avatar Dec 18 '20 09:12 farruxx

need this

maxconnectAbhi avatar Dec 30 '20 10:12 maxconnectAbhi

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 avatar Jan 08 '21 02:01 darron1217

@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 avatar Jan 14 '21 16:01 Adigezalov

@Adigezalov Did you try re-installing the package? (npm remove and npm install)

darron1217 avatar Jan 15 '21 00:01 darron1217

@darron1217 Yes of course. Repeatedly.

Adigezalov avatar Jan 15 '21 02:01 Adigezalov

@Adigezalov What's your npm or yarn version?

(Edit) yarn seems not supporting submodule. https://github.com/yarnpkg/yarn/issues/1488

darron1217 avatar Jan 15 '21 02:01 darron1217

Hey guys, Any of you face the background location sending stops in lock screen on android 10 ?

mwsoofy avatar Jan 15 '21 05:01 mwsoofy

@darron1217 This was indeed a problem in yarn. Thank you for your help

Adigezalov avatar Jan 15 '21 05:01 Adigezalov

@darron1217 But my coordinates are not updated in the case of a killed application

Adigezalov avatar Jan 15 '21 08:01 Adigezalov

@Adigezalov Did you select "Allow all" on dialog?

If then, submit an issue here https://github.com/darron1217/react-native-background-geolocation/issues

darron1217 avatar Jan 15 '21 08:01 darron1217

@darron1217 yes I select "Allow all" on dialog Open issue https://github.com/darron1217/react-native-background-geolocation/issues/1

Adigezalov avatar Jan 18 '21 07:01 Adigezalov

Why it not working with yarn ? I had to use npm

guilhermeadsferreira avatar Jan 22 '21 00:01 guilhermeadsferreira

@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)

darron1217 avatar Jan 28 '21 13:01 darron1217

@darron1217 I'm comparatively new on this, I've included mauron's package, can I directly import yours too on this?

SujashJoshi avatar Jul 30 '21 16:07 SujashJoshi