Я пытаюсь отправить локальное уведомление в Android с помощью flutter_local_notifications, и оно работает нормально. Но проблема в том, что я не могу отобразить собственный значок приложения на панели уведомлений. Итак, может ли кто-нибудь помочь мне поделиться решением. Заранее спасибо!
Вот и код и изображение-
Я пытаюсь отправить локальное уведомление в Android с помощью flutter_local_notifications, и оно работает нормально. Но проблема в том, что я не могу отобразить собственный значок приложения на панели уведомлений. Итак, может ли кто-нибудь помочь мне поделиться решением. Заранее спасибо! Вот и код и изображение- [code] const notificationChannelId = 'fit_jerk'; const notificationId = 1;
final FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
const AndroidNotificationChannel channel = AndroidNotificationChannel( notificationChannelId, // id 'MY FOREGROUND SERVICE', // title description: 'This channel is used for sending daily quotation.', // description importance: Importance.low, // importance must be at low or higher level );
await service.configure( androidConfiguration: AndroidConfiguration( onStart: onStart, autoStart: true, isForegroundMode: true, notificationChannelId: notificationChannelId, // this must match with notification channel you created above. initialNotificationTitle: 'FitJerk', initialNotificationContent: 'Welcome to FitJerk', foregroundServiceNotificationId: notificationId, ), iosConfiguration: IosConfiguration(),);}