A React Native library for Android that provides location services using Google's Fused API for high accuracy and battery efficiency.
react-native-fused-location is a React Native module that provides Android apps with access to device location using Google's Fused Location Provider API. It solves the problem of inefficient or inaccurate location tracking in React Native by implementing Google's recommended approach, which intelligently balances accuracy and battery consumption. The library offers configurable priority modes and methods for one-time fetching, continuous updates, and event-based subscriptions.
React Native developers building Android applications that require reliable and battery-efficient location services, such as mapping, fitness tracking, or location-based notifications. It is specifically for those who want to avoid older, less efficient location libraries and leverage Google's modern Fused API.
Developers choose this library because it directly integrates Google's Fused Location Provider API, which is the most accurate and battery-efficient method for Android location services. Unlike many React Native location libraries, it offers fine-grained control over accuracy, intervals, and displacement thresholds, reducing native implementation overhead.
Finest location for react-native on Android using the new Fused API.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Leverages Google's Fused Location Provider API, which automatically optimizes between GPS, Wi-Fi, and cell towers for superior accuracy and battery efficiency, as highlighted in the README.
Supports multiple accuracy settings like HIGH_ACCURACY and LOW_POWER, allowing fine-tuning of battery usage versus precision based on app requirements.
Offers methods for continuous location tracking with event subscriptions (e.g., 'fusedLocation'), enabling real-time monitoring without constant polling.
Allows setting intervals, displacement thresholds, and priority levels via functions like setLocationInterval(), providing granular control over location requests.
Exclusively supports Android, making it unsuitable for iOS or cross-platform React Native apps without additional libraries or workarounds.
Version 1.0.0 requires migration to AndroidX, a breaking change that can disrupt legacy projects and add complexity, as noted in the README.
Demands manual or automatic native linking and permissions configuration in AndroidManifest.xml, which is more involved than using JavaScript-only alternatives.