-
Notifications
You must be signed in to change notification settings - Fork 257
[Help Wanted]: I'm testing this package in my flutter app to use geofencing with optimal battery usages .My main goal is to achieve the best battery optimization without compromising on accuracy #1484
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Are you only using geofences? |
Yes, I am using geofences to determine if the user is within the working area for attendance purposes. I don't want to compromise on either geofence accuracy or battery optimization. |
See api docs .startGeofences |
Your package api docs mentions a reliable geofence radius of 200 meters. In our case , we want to apply 100-meter radius for geofence. it will still work reliably at this radius or not? |
The radius minimum is imposed by the OS. You can try 100, but the OS will respond with its own minimum. If you want a smaller radius, you could try using Polygon Geofences (sold separately: see api docs Geofences.vertices for more info) |
ok |
is this code is correct to use with the highest accuracy and best battery performance, using a 100-meter radius and a 10-meter distance filter. Basically i want to track a device if the device is 100 m away from there base location then i want to perform some task. Please give the solution with code this is how i use your package: bg.BackgroundGeolocation.onMotionChange((bg.Location location) {
|
yes |
I want to know the best approach to prevent my mobile battery from draining quickly when using foreground and background services for location tracking. Please explain and provide a code example. |
It’s not complicated. This plug-in consumes just as much energy as Google Maps does while following driving-directions. Http requests consumes more energy/second than GPS. Decrease the number of http requests you do with a higher distanceFilter. |
I want to test your plugin on a real device. It seems that the plugin only works in debug mode when using without license key. I built the APK using the following command: Then I installed the APK from this path: However, the background services do not work when I install and run the app from this APK on a real device. But when I run the app directly on the device using a USB cable (via flutter run), the background services work as expected. Could you please help me understand why the background services aren’t working with the installed debug APK and how to resolve this? this is any problem with the code |
The first thing I’d do is observe the logs from $ adb logcat. See wiki “Debugging”. |
Required Reading
Plugin Version
flutter_background_geolocation: ^4.16.9
Mobile operating-system(s)
Device Manufacturer(s) and Model(s)
Google pixel 9 pro
Device operating-systems(s)
Android 13
What do you require assistance about?
I'm testing this package in my flutter app to use geofencing with optimal battery usages , Geofencing works well but, it significantly drains battery too much. My main goal is to achieve the best battery optimization without compromising on accuracy.
i used this as given below
how to optimize battery usages with high location accuracy .
[Optional] Plugin Code and/or Config
[Optional] Relevant log output
The text was updated successfully, but these errors were encountered: