button Icon doesn't appears on awesome_notifications

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',
    )

Upvotes: 0

Views: 32

Answers (0)

Related Questions