- Home /
FCM white icon
I have used FCM for unity ( from : https://github.com/firebase/Firebase-Unity) . Everything is working fine except on device running on Lollipop or above, notification icon is white.
I have added parameter "icon : " as per ( https://firebase.google.com/docs/cloud-messaging/http-server-ref ) still not able to show it.
Additionally , I tried to downgrade "target-sdk" but other libraries which I am using are conflicting.
Anyone who can tell me How to replace that white default image?
Its an issue with android device with lolipop version i think. other than lolipop icon will be available and in lolipop icon will be white square.
Hope it will help you :)
Hey There,
I'm also facing same problem. please ans ASAP..
Please don't use an answer to bump a post - it actually reduces the chances of getting an answer. Use a comment ins$$anonymous$$d. This has been converted for you. Thanks,
It seems that Lollipop needs a special kind of icon (square/background) as you can see here. I have not figured out a solution for the firebase plugin yet.
Answer by MGGDev · Jan 09, 2019 at 11:06 AM
This worked for me:
So you should be able to add your icon(s) to Assets/Plugins/Android/res/drawable/ and reference it name
Then, in the notification json, specify your icon. For example:
"notification": {
"title": "Title",
"body" : "First Notification",
"text" : "Text",
"icon" : "MyIcon"
}
Note: I used one of these icons.
Your answer
Follow this Question
Related Questions
After installing the .apk , the App Icon appears twice 1 Answer
How can I receive all firebase push notifications? 0 Answers
Help with the new Mobile Notification System in Unity 1 Answer
Why does my editor throw an error using firebase plugin? 1 Answer
Andriod icon not filling up entire space 0 Answers