Skip to content
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

Custom icon for notification. #1266

Closed
Neil1484 opened this issue Apr 12, 2017 · 8 comments
Closed

Custom icon for notification. #1266

Neil1484 opened this issue Apr 12, 2017 · 8 comments

Comments

@Neil1484
Copy link

use all solution to change notification icon, but its not change. below is code.

document.addEventListener('deviceready',function(){
var notify = new Date();
notify.setHours(11,29,00,00);

cordova.plugins.notification.local.schedule({
    id:      1,
    icon : "file://img/logoicon.png",
    smallIcon : "file://img/logoicon.png",
    title:   'Driving School',
    message: 'Your training batch timing is 6am to 7am, please reach 15 mins before. ',
    repeat:  'daily',
    date:    notify,
    autoCancel: true, 
    ongoing: true, 
    
});
window.plugins.toast.showShortBottom("alarm set");

});

@rwillett
Copy link
Collaborator

Fill out #1188.

Its not clear what your problem is.

@Neil1484
Copy link
Author

in notification icon get bell_icon. need change that with my app icon

@rwillett
Copy link
Collaborator

Did you bother even searching the local notification issues for this?

#1075
#890
#1222
#1051
#1209
#810
#966
#488

all cover this topic.

@Neil1484
Copy link
Author

Neil1484 commented Apr 12, 2017

Notification icon is set now. New issues is in android 5.0 and above its show white circle not see icon.``
problem
getting this white dot in notification.

show
need to show like this

@Tawpie
Copy link

Tawpie commented Apr 12, 2017 via email

@Neil1484
Copy link
Author

@Tawpie fix notification icon issues. now new issues is white icon show on android 6.0 and other one is big text display in notification. As per above show first image on android 6.0, that not show the icon.

@rwillett
Copy link
Collaborator

You still have the wrong colour combination. From memory, you need to have a white icon as thats how it works. I think you can then add in colour but get it working with a white material background.

You need to read about Android icons as @Tawpie has already suggested.

@rwillett
Copy link
Collaborator

Closed as not updated in five days from original poster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants