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
85 stars 45 forks source link

[Feature Request] Config option to name the notification channel #67

Open boldt opened 1 year ago

boldt commented 1 year ago

State of the art

I can configure the background service as follows:

final androidConfig = FlutterBackgroundAndroidConfig(
    notificationTitle: "flutter_background example app",
    notificationText: "Background notification for keeping the example app running in the background",
    notificationImportance: AndroidNotificationImportance.Default,
    notificationIcon: AndroidResource(name: 'background_icon', defType: 'drawable'), // Default is ic_launcher from folder mipmap
);

The title will be used in the background notification:

grafik

The title is also used in the notification settings of the app:

grafik

An app could have multiple notification channels, thus they can be named.

Feature request

Add an option, which allows to configure the name of the background notification channel as well.