arnesson / cordova-plugin-firebase

Cordova plugin for Google Firebase
http://arnesson.github.io/cordova-plugin-firebase
MIT License
1.01k stars 1.56k forks source link

custom notification_icon not showing #257

Closed roshni-kamath closed 6 years ago

roshni-kamath commented 7 years ago

I had set the icons in the drawable folders. I also set styles in values and values-v21 folder. But still the notification icon in status bar is the blank white icon

alx-andru commented 7 years ago

same here if I install the app through Google Play store. If installed through ionic run android the icon works.

josh-m-sharpe commented 7 years ago

Think I figured this out. I added a 'icon' attr to my notification payload: icon: 'notification_icon' -- then it picked up the 'notification_icon.png' that was in all of my drawable folders.

LufoX11 commented 7 years ago

My solution https://github.com/arnesson/cordova-plugin-firebase/issues/53#issuecomment-304573222

rolinger commented 7 years ago

I use Ionic as well, I got my icons to work cleanly without any extra XML...see my write up: icon tutorial