Awesome Notification图标异常:显示白色圆圈而非应用Logo求助
Awesome Notification 通知显示白色圆圈而非应用Logo问题
我使用Awesome Notification展示通知时,功能正常,但通知上显示的是白色圆圈,而非应用Logo。已尝试以下方法但均未解决问题:
- 传入
resource://drawable/ic_launcher_foreground - 修改Manifest文件
初始化代码
static Future<void> initialize() async { await AwesomeNotifications().initialize( null, [ NotificationChannel( channelKey: 'high_importance_channel', channelName: 'Alerts', channelDescription: 'Alerts', playSound: true, defaultRingtoneType: DefaultRingtoneType.Notification, enableVibration: true, defaultColor: Colors.amber, enableLights: true, importance: NotificationImportance.High, defaultPrivacy: NotificationPrivacy.Private, ) ], debug: false); initialAction = await AwesomeNotifications() .getInitialNotificationAction(removeFromActionEvents: false); }
相关截图
- 通知显示效果:

- 代码截图:

内容的提问来源于stack exchange,提问作者Hari A.R
相关产品推荐
相关产品推荐

