-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Comments
Fill out #1188. Its not clear what your problem is. |
in notification icon get bell_icon. need change that with my app icon |
You absolutely *must* make the icons according to the documentation for the OS you are using, if your icons are the wrong sizes (and that is plural because you need an icon for each screen density!) your icons will not be used and the bell will be substituted. This is something enforced by the OS, not by the plugin.
… On Apr 11, 2017, at 11:56 PM, salunkhenilesh ***@***.***> wrote:
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");
});
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@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. |
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. |
Closed as not updated in five days from original poster. |
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);
});
The text was updated successfully, but these errors were encountered: