Not working when App closed (Android)
See original GitHub issueMy BackgroundGeolocation configure :
BackgroundGeolocation.configure({
desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
stationaryRadius: 50,
distanceFilter: 50,
notificationTitle: 'Background tracking',
notificationText: 'enabled',
debug: false,
startOnBoot: false,
stopOnTerminate: false,
locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER,
interval: 10000,
fastestInterval: 5000,
activitiesInterval: 10000,
notificationsEnabled:true,
url: 'http://192.168.81.15:3000/location',
httpHeaders: {
'X-FOO': 'bar'
},
// customize post properties
postTemplate: {
lat: '@latitude',
lon: '@longitude',
foo: 'bar' // you can also add your own properties
}
});
BackgroundGeolocation.on('location', (location) => {
console.log('[ERROR] BackgroundGeolocation ', JSON.stringify(location));
Alert.alert("Get Location"+ JSON.stringify(location))
});
Not getting location values when the android application is closed not trigger any action in react native side.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
Android Service Stops When App Is Closed - Stack Overflow
The Main problem is in unable to start the service when app closed, android OS(In Some OS) will kill the service for Resource...
Read more >Fix an installed Android app that isn't working - Google Support
Try the following steps if an app installed on your phone has any of these problems: Crashing. Won't open. Won't respond. Isn't working...
Read more >Android push notification not working when the app is closed
After some research, all I got to know is that for some device if the background task is taking to much of your...
Read more >Why do my apps keep crashing on Android, How to fix it
How to fix apps that keep crashing on Android · 1. Force stop the app · 2. Restart the device · 3 ....
Read more >How to force close apps in Android - Digital Trends
If your smartphone has a single horizontal line and uses a swipe-gesture system to navigate, swipe up from the bottom to the middle...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
any update?
I will check
BackgroundGeolocation.stop()
not place anywhere and Foreground notification is also enabled in android but not get location values inBackgroundGeolocation.on('location', (location))
method.