79527047

Date: 2025-03-22 06:48:55
Score: 0.5
Natty:
Report link

Go to => android/src/main/res/drawable.Paste your icon it should be white tansparent png format enter image description here

Then add below code AndroidManifest.xml file

<meta-data
  android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/noti" />

Then modified some code your notification service class

var androidInitializationSettings = const AndroidInitializationSettings('@drawable/noti');

 AndroidNotificationDetails androidNotificationDetails = AndroidNotificationDetails(
        channel.id.toString(),
        channel.name.toString() ,
        channelDescription: 'your channel description',
        styleInformation: bigPictureStyle,
        importance: Importance.high,
        priority: Priority.high ,
        playSound: true,
        ticker: 'ticker' ,
       sound: RawResourceAndroidNotificationSound(''),
       icon: '@drawable/noti',
    );

I hope it will work In Sha Allah :-)

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mahabub Alam Shawon