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
89 stars 52 forks source link

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

Closed JulianAssmann closed 1 month 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 2 years 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 :)