Open aveliks opened 7 years ago
Hello aveliks,
Actually, the time and space interval specification feature for each tracking context was still in development. Since it's meant for really particular cases (and im quite busy these days), i postponed it. My apologies for that lol. If your problem is limited to set an equal position recording interval of space/time for all tracking contexts you, can go to the GpsTrackService file and change the two final variables SPACE_INTERVAL (meters) and TIME_INTERVAL (millis) to fit your needs. If not, maybe in some days i can code this.
Now about the usage.
To start a tracking context:
BackgroundTracker.startTracking(options, callback, fallback);
For example:
BackgroundTracker.startTracking({"track_id":"TRACK01"}, function(){
console.log("Started recording positions!");
}, function(e){
console.log("Error: " + e);
});
Then:
BackgroundTracker.getStoredTrack("TRACK01", function(track){
console.log(track);
//'tracks' => Tracks recorded until the startTracking call.
});
If you want to stop recording for some time:
BackgroundTracker.stopTracking("TRACK01"):
Note that the file remains in disk, so you need to call a removeTrack to wipe that data.
Thanks for the issue! :]
Wow ! thanks a lot for answer! This project is alive!
========== Some words for future wishes: what I need ( and I think many other too)
set test mode with beep sound for new event checking
ability for sending notification to high status bar
real working in Android 6 and 7
=======================
My current task is checking location periodically and compare with locations preset in memory with sending notification if current location is near from preset list of location's
Strict and important (for me) - is Your plugin will not use Gradle cause I use IntelXDK that don't support Gradle scenario .
If will all OK , I'll do some advertise for Your plugin in XDK community :)
=========================
Sorry, but my experience in java+Cordova is not so good for active helping in developig :(
I will evaluate this. Maybe next week we can have the new place callback functional, i will work on that. And no, it's not using any gradle statements. Thanks for the ideas and feel free to bring me more issues!
Hi!,
Is any news ?
Hi! Is any simple sample for using ?
And what dimension have to use for distance (meters or ?) and time (sec or msec?)