transistorsoft / flutter_background_geolocation

Sophisticated, battery-conscious background-geolocation & geofencing with motion-detection
https://www.transistorsoft.com/shop/products/flutter-background-geolocation
Other
637 stars 235 forks source link

High battery usage on Android 15 Beta 4.1 #1341

Open zigapovhe opened 1 month ago

zigapovhe commented 1 month ago

Your Environment

Expected Behavior

I would expect to have the same or at least pretty similar battery consumption on Android 15 as on A14 or A13.

Actual Behavior

The battery consumption is much greater on A15 when app is in background

Steps to Reproduce

Install app (with your plugin of course) on Android 15 with headless mode enabled

Context

We are using your plugin in production for a few months now, it works really well. To prepare our apps for upcoming Android 15 release, we tested all of them on Pixel 7 and Pixel 7 Pro devices (with Android 15 Beta 4.1 installed), but we find out that app which uses your plugin for geofencing is causing high battery consumption. The same device on A14 had 2% of background battery usage while on A15 the percentage was much higher. I'm attaching screenshot below: Screenshot_20240727-001506

christocracy commented 1 month ago

See wiki “Philosophy of Operation”. When the device is moving and the plug-in has engaged location-services, the plug-in is consuming as much energy as a Maps app following a driving route.

when the device becomes stationary, the plug-in turns off location-services and consumes now power.

if you’re tracking geofences-only, see api docs “.startGeofences”.

github-actions[bot] commented 5 days ago

This issue is stale because it has been open for 30 days with no activity.