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

Notification doesn't show the app icon #112

Closed
ashishsajwan opened this Issue Sep 7, 2015 · 5 comments

Comments

Projects
None yet
3 participants
@ashishsajwan
var push = PushNotification.init({ 
        "android": { 
            "senderID": "123456789", "icon": "icon", "iconColor": "blue"}, 
       "ios": {}, "windows": {} 
    });

setting "icon" : "icon" because i have icon.png inside drawable folder ...

but on receiving notification , instead of icon, it shows white square inside a grey circle ...

@macdonst @bobeast @EddyVerbruggen

@ashishsajwan ashishsajwan changed the title from Notification on doesn't show the app icon to Notification doesn't show the app icon Sep 7, 2015

@ashishsajwan

This comment has been minimized.

Show comment
Hide comment
@ashishsajwan

ashishsajwan Sep 7, 2015

Here are the screen shots. .. on lock screen it shows app icon with colored background .. although i was expecting app icon to fill up all the space ..

screenshot_2015-09-07-16-44-12

but once you unlock this is how it looks

screenshot_2015-09-07-16-45-06

Here are the screen shots. .. on lock screen it shows app icon with colored background .. although i was expecting app icon to fill up all the space ..

screenshot_2015-09-07-16-44-12

but once you unlock this is how it looks

screenshot_2015-09-07-16-45-06

@macdonst

This comment has been minimized.

Show comment
Hide comment
@macdonst

macdonst Sep 7, 2015

Member

@ashishsajwan what you show here is proper behaviour. As of Android 5+ there are new guidelines to follow for icons. Check out: http://developer.android.com/design/patterns/notifications.html under "Use distinct icons".

The small icon is only supposed to be white with transparency. That is why I added in the icon property for Android so you could specify the properly formatted icon.

Member

macdonst commented Sep 7, 2015

@ashishsajwan what you show here is proper behaviour. As of Android 5+ there are new guidelines to follow for icons. Check out: http://developer.android.com/design/patterns/notifications.html under "Use distinct icons".

The small icon is only supposed to be white with transparency. That is why I added in the icon property for Android so you could specify the properly formatted icon.

@macdonst macdonst closed this Sep 7, 2015

@ashishsajwan

This comment has been minimized.

Show comment
Hide comment
@ashishsajwan

ashishsajwan Sep 9, 2015

but how to show colored notification icon on kitkat & user this new icon only on lolipop ??

@macdonst

but how to show colored notification icon on kitkat & user this new icon only on lolipop ??

@macdonst

@utamanna

This comment has been minimized.

Show comment
Hide comment
@utamanna

utamanna Oct 27, 2016

@macdonst, like @ashishsajwan asked, how can we show the new icon for Android 5+ but also be backwards compatible for Android versions below 5 (mainly Android versions Jelly Bean and KitKat, they still have pretty significant install numbers Google Dashboard).

@macdonst, like @ashishsajwan asked, how can we show the new icon for Android 5+ but also be backwards compatible for Android versions below 5 (mainly Android versions Jelly Bean and KitKat, they still have pretty significant install numbers Google Dashboard).

@lock

This comment has been minimized.

Show comment
Hide comment
@lock

lock bot Jun 4, 2018

This thread has been automatically locked.

lock bot commented Jun 4, 2018

This thread has been automatically locked.

@lock lock bot locked as resolved and limited conversation to collaborators Jun 4, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.