Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Small icon not working #316

Closed
albertleao opened this issue Nov 7, 2015 · 3 comments
Closed

Small icon not working #316

albertleao opened this issue Nov 7, 2015 · 3 comments

Comments

@albertleao
Copy link
Contributor

Hello.

Push plugin has been working great for me until i recently updated cordova to 5.2 and the pushplugin to 1.4.2.

After my upgrade, my push notifications and large icons still worked, but my small icon is always just a white square.

var push = PushNotification.init({
"android": {"senderID": "###", "icon" : 'ic_message_white_24dp.png', "iconColor" : "blue"},
"ios": {},
"windows": {}
});

I have the ic_message_white_24dp.png in my platform/res/drawables folder and still get nothing. The small icon background color is working correctly with "blue"

@fredgalvao
Copy link
Collaborator

I don't know if it would matter, but all examples I know specify the icon property without the extension name. Please try again with the following code and report back:

var push = PushNotification.init({
    "android": {
        "senderID": "###",
        "icon" : 'ic_message_white_24dp',
        "iconColor" : "blue"
    },
    "ios": {}, 
    "windows": {} 
});

@albertleao
Copy link
Contributor Author

You are correct, that was it. I created a pull request to add that to the documentation. Thank you very much.

@lock
Copy link

lock bot commented Jun 5, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants