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

PushPlugin notification icon is too big #88

Closed
jff1981 opened this issue Aug 30, 2015 · 6 comments
Closed

PushPlugin notification icon is too big #88

jff1981 opened this issue Aug 30, 2015 · 6 comments

Comments

@jff1981
Copy link

jff1981 commented Aug 30, 2015

PushPlugin notification icon is too big

Hi everyone,
I successfully installed push plugin on my app, but the notifications icon doesn’t look good
See the attached photo
Does someone know how to fix it?

Thank you in advanced!
screenshot_2015-08-30-11-43-41

@macdonst
Copy link
Member

@jff1981 the space used to display your icon appears to be exactly the same as the Motorola and voicemail icons so I'm not sure what you mean by too big? Regardless, if you check the README you'll see that you can control what is displayed here by setting options.android.icon and options.android.iconColor.

@jff1981
Copy link
Author

jff1981 commented Aug 31, 2015

Thank you for your quick response!
I wasn't sure how to use this feature
let's say i got an image res/drawable/notify.png

@jff1981
Copy link
Author

jff1981 commented Aug 31, 2015

I tried this but it's not working
var push = PushNotification.init(
{ "android": {"senderID": "XXXXXX", "icon":"R.drawable.notify"},
"ios": {}, "windows": {} } );

what am i doing wrong here?
Thanks in advanced!

@macdonst
Copy link
Member

You just need to do:

var push = PushNotification.init(
{ "android": {"senderID": "XXXXXX", "icon":"notify"},
"ios": {}, "windows": {} } );

as long as the notify.png image is somewhere in your drawables folder.

@jff1981
Copy link
Author

jff1981 commented Aug 31, 2015

Thanks!

@jff1981 jff1981 closed this as completed Aug 31, 2015
@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