Background Location for react native

253 Views Asked by At

I am creating a react native app for location tracking so I wanted to know how can I work with it.

Requirements:

  1. Start tracking location on button click.
  2. Fetch both foreground and background location.
  3. Fetch location even when the app is killed.
  4. Application needs to work with latest Android Version.

Please let me know how can I complete all the above requirements with stable packages.

1

There are 1 best solutions below

0
Hosar On

Probably your best bet is to use this library, you have to pay a license tho.

react-native-background-geolocation