Skip to content

How to use HIGH_ACCURACY for foreground and LOW_ACCURACY when in background/headless? #403

@joshuakoh7

Description

@joshuakoh7

Your Environment

  • Plugin version:
  • Platform: iOS or Android
  • OS version:
  • Device manufacturer and model:
  • Running in Simulator:
  • React Native version:
  • Plugin configuration options:
  • Link to your project:

Context

Expected Behavior

I need the user location to be high accuracy when the app is in foreground/minimized.
I would like to track location updates to a 3 decimal place accuracy (~111m) when the app is terminated and running headless.
Am I supposed to run two separately configured instances of BackgroundGeolocation?

Actual Behavior

Possible Fix

Steps to Reproduce

Context

Debug logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    staleauto labeled abandoned issues after a period of inactivity

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions