This plugin can be used for geolocation when the app is running in the foreground or background. It is more battery and data-efficient than html5 geolocation or Cordova-geolocation plugin. It can be used side by side with other geolocation providers (eg. html5 navigator. geolocation).
This project is based on @mauron85/Cordova-plugin-background-geolocation, which in turn was based on the original Cordova-background-geolocation plugin by christocracy. Hayl Ltd has taken on responsibility for hosting it and will be maintaining it and merging PRs from the community. If you have any fixes, features, or updates that you would like included, please raise a PR or issue on the GitHub repository.source code for this plugin implemented from this git : https://haylltd.github.io/cordova-background-geolocation-plugin/