1

I use FCM in my project and it works pretty well. But there is one issue: on some Android devices instead of coloured application icon (when no custom default icon is set and no icon is set in the notification payload) round gray circle is shown. Why this happens and what kind of icon should I use? Should I set custom default icon using meta-data tag?wrong icon

1 Answers1

1

I know it is old question but I am sure someone can need the answer. Inside application tag in the AndroidManifest.xml file add this lines.

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

and put the file called my_notification_icon.png file in the /res/drawable folder.