background_tracker 0.0.1
background_tracker: ^0.0.1 copied to clipboard
A Flutter piece of code for executiong geolocation in background firing a callback with dar async timer.
background_tracker #
background_tracker
A Android Flutter package that uses Geolocator, Isolates, SendPorts and Dart Async to achieve backgrounded application tracking without throwing Asynchronous Suspension Exceptions.
Getting Started #
Installation #
dependencies: background_tracker: 0.0.1
Example #
Tracker myTracker = Tracker(); // Instantiate the Tracker
myTracker.config(
duration: Duration(seconds: 10), //Default 7 seconds
endpoint: "https://myTrackingApi.example.com/v1/receiveTrack,
prefsKey: "userId", //Default "id"
bearer: "L8qq9PZyRg6ieKGEKhZolGC0vJWLw8iEJ88DRdyOg"
); // At least endpoint is required.
Enjoy it #
$ (flutter) Fetch My Location is running in Background...
Github #
[http://github.com/Thrashattack]
This project is a sample implementation point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.