admin管理员组

文章数量:1295329

I tried to create two buttons (with icons) notification on my android 14 but still it not appears. I did

          NotificationActionButton(
            key:'REJECT',
            label:'Reject',
            autoDismissible: true,
            enabled: true,
            showInCompactView: true,
            color: Colors.red,
            icon: 'resource://drawable/reject_icon',
          ),

i added my icon icon on ~/android/app/src/main/res/drwable folder but nothing appears. I did tried using image asset on android studio to add my custom icon (i put icon type as notifications icon) also tried to add clip art icon but nothing appears. also tried vector asset and the same thing nothing appears. also tried nothing appears icon: '@drawable/reject_icon' but no icon appears.

NOTE: i did change my android notification icon using this method and it change successfully, so the path is correct!

await AwesomeNotifications().initialize(
      // null,
      'resource://drawable/app_icon',
    )

本文标签: androidbutton Icon doesn39t appears on awesomenotificationsStack Overflow