You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

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

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.16 05:27:09