Open zigapovhe opened 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”.
This issue is stale because it has been open for 30 days with no activity.
Your Environment
flutter doctor
): [✓] Flutter (Channel stable, 3.22.3, on macOS 14.5 23F79 darwin-arm64, locale en-SI) [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 15.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2024.1) [✓] VS Code (version 1.92.0) [✓] Connected device (5 available) [✓] Network resourcesExpected 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](https://github.com/user-attachments/assets/f4f32b7f-3149-49fd-b6a5-c9b2fc868f2e)