Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
cordova-plugin-bg-geolocation
Advanced tools
Prevent apps from going to sleep in background while using location.
Plugin for the [cordova] framework to perform infinite background execution for geolocation.
Infinite background tasks are not officially supported on most mobile operation systems and thus not compliant with public store vendors. A successful submssion isn't garanteed.
Use the plugin at your own risk!
The plugin can be installed via [Cordova-CLI][CLI] and is publicly available on [NPM][npm].
$ cordova plugin add https://github.com/Anuj-Raghuvanshi/cordova-plugin-bg-geolocation.git
OR
$ cordova plugin add cordova-plugin-bg-geolocation
'interval' => After how many minutes you want location update(In Minutes).
'after_last_update_minutes' => If user changes location in b/w given interval, Then what should be time after which you need location update(In Minites).
'minimum_distance_changed' => If user changes location in b/w given interval, What should be minimum distance covered in that period(In Meters).
var options = {
'interval': 5,
'after_last_update_minutes': 2,
'minimum_distance_changed': 200
}
cordova.plugins.backgroundMode.startGettingBackgroundLocation(options, function(location){
// location
}, function(err) {
// err
});
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Prevent apps from going to sleep in background while using location.
The npm package cordova-plugin-bg-geolocation receives a total of 0 weekly downloads. As such, cordova-plugin-bg-geolocation popularity was classified as not popular.
We found that cordova-plugin-bg-geolocation demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.