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
87 stars 49 forks source link

Add permissions to plugin's AndroidManifest.xml #82

Closed larssn closed 1 month ago

larssn commented 8 months ago

Any reason why the 3 permissions below aren't added to the plugin's AndroidManifest.xml? Gradle is pretty good at merging manifest files when building, so there's shouldn't be any reason to ask the consumer to put these in the app's manifest.

<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
<uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS" />
JulianAssmann commented 1 month ago

Thank you for creating the issue. This should be resolved by #80.