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

Add permissions to plugin's AndroidManifest.xml #82

Closed larssn closed 3 months ago

larssn commented 9 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 3 months ago

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