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] Allow for custom notification icon #11

Closed JulianAssmann closed 3 years ago

JulianAssmann commented 3 years ago

Currently, the icon for the notification is hard-coded to be loaded from the resource with the identifier ic_launcher (see IsolateHolderService, in onCreate() before creating the notification). To change this, a new String field, e.g. notification_icon, has to be added in FlutterBackgroundAndroidConfig and passed down to the Android side just like the notification title etc. The documentation has to be updated accordingly.