Issue
I’ve been using background_locator to fetch the location of the user in the background even when app is killed. To be honest, it’s the only package that worked for me. Now this package is not reliable after using for months and the maintainer doesn’t publish updates often.
I’m look for alternative. Is flutter_background_geolocation a true alternative?
Solution
I’m the author of this plugin.
Yes, if you configure stopOnTerminate: true
.
Android Headless Mode (enableHeadless: true
) is optional, required only if you have custom business logic. The SDK’s built-in http service can automatically upload each recorded location to your server without a headless-task.
iOS will resume tracking after the device moves ~200 meters beyond last known location, when the OS automatically re-launches your app in the background, just as if launched from the home screen.
Have a look at the API docs linked at the top of the GitHub repo README, they’ quite extensive.
Answered By - Christocracy
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.