Home » Android » android – Location tracking in react native even if app is closed or in background

android – Location tracking in react native even if app is closed or in background

Posted by: admin May 14, 2020 Leave a comment

Questions:

I have to send location data in every 10 minute to the server. That should be work even app is closed or in background. I google some plugins which are as follow.

1.react-native-background-geolocation (paid for android)
2.react-native-mauron85-background-geolocation (will not work when app is killed)

Is it possible to have the requirement done while working with react native.

  1. when app is in foreground
  2. when app is in background
  3. when app is killed
How to&Answers: