-
Notifications
You must be signed in to change notification settings - Fork 564
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting issue in fetching location when device screen is locked Android #580
Comments
did you face some build errors |
no |
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
|
did you face this error ? |
@jagatrajsingh2000 Hello, did you get a solution? |
Got any solution for this?
|
To solve the problem add this in your AndroidManifest
and add this services in the same file
That fix my problem |
Your Environment
Plugin version:0.6.3
Platform: Android
OS version: 12
Device manufacturer and model: OPPO CPH2095
React Native version: 0.64
Plugin configuration options:
BackgroundGeolocation.configure({
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'enabled',
debug: true,
startOnBoot: false,
stopOnTerminate: true,
locationProvider: BackgroundGeolocation.RAW_PROVIDER,
interval:50000,
fastestInterval: 50000,
activitiesInterval: 50000,
stopOnStillActivity: false,
url: 'http://192.168.81.15:3000/location',
httpHeaders: {
'X-FOO': 'bar'
},
});
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
The text was updated successfully, but these errors were encountered: