New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PushPlugin notification icon is too big #88

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

Comments

Projects
None yet
2 participants
@jff1981

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

This comment has been minimized.

Show comment
Hide comment
@macdonst

macdonst Aug 30, 2015

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.

Member

macdonst commented Aug 30, 2015

@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

This comment has been minimized.

Show comment
Hide comment
@jff1981

jff1981 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 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

This comment has been minimized.

Show comment
Hide comment
@jff1981

jff1981 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!

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

This comment has been minimized.

Show comment
Hide comment
@macdonst

macdonst Aug 31, 2015

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.

Member

macdonst commented Aug 31, 2015

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

This comment has been minimized.

Show comment
Hide comment

jff1981 commented Aug 31, 2015

Thanks!

@jff1981 jff1981 closed this Aug 31, 2015

@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot Jun 5, 2018

This thread has been automatically locked.

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.