Skip to content

Change icon on push notification #82

Closed
@felipeprov

Description

@felipeprov

Hi
I am trying to integrate the firebase-notification in my game, i am receiving the messages correctly, but the notifications are using the main icon of my app, that becomes a white block in the notication bar. So i need the push notications use my second icon (ic_stat_ic_notification.png).

I tried to add

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

in the AndroidManifest.xml,
And i have a ic_stat_ic_notification.png in the drawable folder if i open the APK.

So i think, everything is in place...

But it always uses the wrong icon...

I am sending messages using the console with the key icon defined.

There is anything else i am supposed to do to change the notification icon?

Best Regards

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions