I cannot set the default icon of the push notifications in AndroidManifest.xml.
First I added the following in AndroidManifest.xml
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/ic_stat_ic_notification" />
I generated all icons in this platform and put them in the drawable folders.
But the default icon in the app continues that gray square icon.
Please, someone can help me?

Please, someone can help me?
I'm using the following icons in the drawable folders: ic_stat_ic_notification.zip
My suggestion: Use android studio to generate your notification icon.
Right click on 'res' folder -> New -> Image Asset
From what I've tried, it seems that the name of the image must be notification_icon
After that, edit your AndroidManifest.xml accordingly here.
I have attached some screenshots to help navigate in Android Studio.

Hi @tingzhouu
I followed your step, but still see the square icon.
What should I do now?
I found solution.
Should name notification icon name to "notification_icon" according to the source code.(lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java)
int iconResId = getAppResourceId("notification_icon", "drawable");
But if we can set icon via postLocalNotification() function, it will be more helpful.
Anyway Thank you all.
I did the same. Change name to notification_icon and added in drawable but no luck.
@theromie
- please check the following code is in AndroidManifest.xml
<meta-data
android:name="com.google.firebase.messaging.default_notification_icon"
android:resource="@drawable/notification_icon" />
- follow this comment https://github.com/wix/react-native-notifications/issues/533#issuecomment-601513113
Hope it would be helpful
@Great-hijack Thanks, It works after creating image from Android Studio
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.
I guess this should be add to documentation:
Setting the icon and color:
Drawable folder: Add your notification icon named as notification_icon.png
colors.xml
<color name="colorAccent">Your color hex here</color>
AndroidManifest:
<meta-data android:name="com.google.firebase.messaging.default_notification_icon" android:resource="@drawable/notification_icon" />
<meta-data android:name="com.google.firebase.messaging.default_notification_color" android:resource="@color/colorAccent" />
After 2 hours of trying all sorts of places to put and reference the notification icon, I would strongly be in favor of putting this to the docs
For anyone not willing to modify their code, here is a small adaptable patch in the meantime
diff --git a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
index ac04274..8a59fb2 100644
--- a/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
+++ b/node_modules/react-native-notifications/lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/PushNotification.java
@@ -166,7 +166,7 @@ public class PushNotification implements IPushNotification {
}
private void setUpIcon(Notification.Builder notification) {
- int iconResId = getAppResourceId("notification_icon", "drawable");
+ int iconResId = getAppResourceId("ic_notification", "mipmap");
if (iconResId != 0) {
notification.setSmallIcon(iconResId);
} else {