Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
1.34k
stars
565
forks
source link
Background tracking terminates even when the option 'stopOnTerminate: false' #518
Open
ukadawit opened 4 years ago
Your Environment
BackgroundGeolocation.configure({ url: api.baseUrl + '/api/register_device_info', desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY, stationaryRadius: 10, distanceFilter: 10, notificationTitle: 'Tracking', notificationText: 'app is tracking your location.', debug: false, startForeground: true, startOnBoot: false, stopOnTerminate: false, locationProvider: BackgroundGeolocation.ACTIVITY_PROVIDER, interval: locationInterval, fastestInterval: locationInterval, httpHeaders: { Authorization: user_token, }, postTemplate: { location: { lat: '@latitude', long: '@longitude', }, speed: '@speed', trip_start_time: formatedTimeStamp(), trip_end_time: lastTimeStamp, timestamp: formatedTimeStamp(), direction: '@bearing', device_type: 'gps', info_type: 'mobile', }, activitiesInterval: 15000, stopOnStillActivity: false, });
Context
I am using this plugin an up that tracks user location even when the app is terminated
Expected Behavior
It should continue tracking even when the app is terminated
Actual Behavior
Location tracking stoped
Possible Fix
Steps to Reproduce
1. 2. 3. 4.
Context
Debug logs