mauron85 / react-native-background-geolocation

Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
Apache License 2.0
1.33k stars 559 forks source link

Getting issue in fetching location when device screen is locked Android #580

Open GurjeetLamba opened 1 year ago

GurjeetLamba commented 1 year ago

Your Environment

Context

I am trying to get the location all the time , whether device locked or unlocked , app in foreground or background , I have taken the background Permissions also , but not getting correct location when device is locked. I am not using the url but calling the API after getting location

Steps to Reproduce

  1. open the app or close keep device screen lock 15 seconds and let the device lock itself
  2. location will not be saved in db
jagatrajsingh2000 commented 1 year ago

did you face some build errors

GurjeetLamba commented 1 year ago

no

jagatrajsingh2000 commented 1 year ago

Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception.

jagatrajsingh2000 commented 1 year ago

did you face this error ?

GusttavoCastilho commented 1 year ago

@jagatrajsingh2000 Hello, did you get a solution?

Linuhusainnk commented 6 months ago

Got any solution for this?

Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 FAILURE: Build failed with an exception.

  • What went wrong: Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'. Could not find ::. Required by: project :app

  • Try:

Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.