This plugin will start a background service to track gps positions even if application is closed.
BackgroundTracker.startTrack(options,
callback,
fallback);
- The "options" argument is a JSON object. Keys: "track_id" (required), "interval_time", "interval_space".
BackgroundTracker.stopTrack(track_id);
- New locations will not be written to that track until it starts again. It will not delete the track file.
BackgroundTracker.getStoredTrack(track_id, function(results){}, function(error){});
- Returns all the locations registered for that track as a JSON array.
BackgroundTracker.removeStoredTrack(track_id, function(){}, function(error){});
- Remove the stored track file. Note that this will not stop tracking, and therefore, it will keep writing if started.