Hello,

I am using Firebase to send Push Notifications to users.
I managed to change the iOS Icon within the push notification but not on Android.
Looking through the forge did not helped me to find a solution.

Can anybody help? :)

Thanks in advance.

Hi Rahul,

Yes I tried it but it only changes the icon for iOS and not for Android.

Solution

Hi Moritz,

I have used same aand able to change icon below is configuration

{

    "resource": "MyResources.zip",

    "icons": {

        "android": [{

            "resource": "bell.png",

            "density": "ldpi"

        },

        {

            "resource": "Tunblr.png",

            "density": "mdpi"

        },

        {

            "resource": "bell.png",

            "density": "hdpi"

        },

        {

            "resource": "bell.png",

            "density": "xhdpi"

        },

        {

            "resource": "Tunblr.png",

            "density": "xxhdpi"

        },

        {

            "resource": "bell.png",

            "density": "xxxhdpi"

        }]

        

    }


}


Rgeads

Rahul Sahu

Solution

Hi Rahul,


You´re right! :)

I allready had this solution but I took a .png without transparency.

https://documentation.onesignal.com/docs/customize-notification-icons 

So the Icon was changed but was displayed incorrect.

Still thank you for your answer!

Have a good day! :)