react-native-background-geolocation icon indicating copy to clipboard operation
react-native-background-geolocation copied to clipboard

Android on location not working on foreground

Open mikeal222 opened this issue 3 years ago • 2 comments

 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

  • Plugin version:^0.6.3
  • Platform: Android
  • OS version: Android 10
  • Device manufacturer and model: Oppo A5
  • Running in Simulator:
  • React Native version:
  • Plugin configuration options:
  • Link to your project:

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

Context

Debug logs

mikeal222 avatar Jun 19 '21 06:06 mikeal222

same issue

CrifQui avatar Jul 07 '21 16:07 CrifQui

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

pavelustenko avatar Aug 06 '21 17:08 pavelustenko