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

Android on location not working on foreground #547

Open mikeal222 opened 3 years ago

mikeal222 commented 3 years ago
 BackgroundGeolocation.configure({
      desiredAccuracy: BackgroundGeolocation.HIGH_ACCURACY,
      distanceFilter: 50,
      stationaryRadius:50,
      startOnBoot: false,
      debug:false,
      stopOnTerminate: false,
      locationProvider: BackgroundGeolocation.DISTANCE_FILTER_PROVIDER,
      interval: 10000,
      fastestInterval: 5000,
      activitiesInterval: 10000,
      stopOnStillActivity: false,
      postTemplate: null
    });

Your Environment

Context

Expected Behavior

Need foreground location updates for android device

Actual Behavior

Have not receiving any update on foreground android only for on location but works fine on ios

Possible Fix

Steps to Reproduce

1. 2. 3. 4.

Context

Debug logs

CrifQui commented 3 years ago

same issue

pavelustenko commented 3 years ago

See https://github.com/mauron85/react-native-background-geolocation/issues/532 and use fork link in comments