schonmann / schonmann-bgtracker-plugin

Background GPS Tracking plugin for cordova applications.
1 stars 1 forks source link

Cordova Background Tracker Plugin

Contributors

@schonmann @PMoneda

Background Tracking plugin for Cordova

This plugin will start a background service to track gps positions even if application is closed.


Starting a track context:

BackgroundTracker.startTracking(options, 
    callback, 
    fallback);

Stop to track:

BackgroundTracker.stopTracking(track_id);

Get a persisted track:

BackgroundTracker.getStoredTrack(track_id, function(results){}, function(error){});

Remove a persisted track:

BackgroundTracker.removeStoredTrack(track_id, function(){}, function(error){});