Background and foreground geolocation plugin for React Native. Tracks user when app is running in background.
The React Native Background Geolocation package, now known as @mauron85/react-native-background-geolocation, is a fork of cordova-plugin-background-geolocation. It offers features like battery-saving circular region monitoring and stop detection, making it useful for geolocation when the app is running in the foreground or background. This plugin provides options for different location providers and allows for customization of dependencies in the Android build.gradle file.
To install the @mauron85/react-native-background-geolocation package, follow these steps:
npm install @mauron85/react-native-background-geolocation
react-native link @mauron85/react-native-background-geolocation
The @mauron85/react-native-background-geolocation package offers a comprehensive solution for geolocation services in React Native applications. With features like circular region monitoring and stop detection, it provides a reliable way to track location in both foreground and background modes. Developers can customize dependencies and take advantage of the compatibility with different versions of React Native to enhance their app’s geolocation capabilities.