JulianAssmann / flutter_background

A flutter plugin to keep apps running in the background via foreground services. Android only.
https://pub.dev/packages/flutter_background
MIT License
86 stars 46 forks source link

[Android] Add ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS as an option to obtain excemption from battery optimizations #8

Open JulianAssmann opened 3 years ago

JulianAssmann commented 3 years ago

On android, add ACTION_REQUEST_IGNORE_BATTERY_OPTIMIZATIONS as an option to obtain excemption from battery optimizations, as declaring REQUEST_IGNORE_BATTERY_OPTIMIZATIONS might lead to a ban of the app in the Play Store, "unless the core function of the app is adversely affected" (see the note here)

datdescartes commented 1 year ago

@JulianAssmann As option to not request battery optimization permission is added, could you release new version to pub.dev? The current version(1.1.0) doesn't reflect latest code

JulianAssmann commented 1 year ago

@datdescartes Release 1.2.0 should now incorporate these changes :)