I am experiencing problems when trying to set a notification icon in the Local Notifications Plugin. I tried following the instructions of the plugin on Github, but it didn't work.
The icon I want to use is in the www/img
folder, I tried using file://
approach and also by using icons from the drawable folder using the res://
approach. But both of these approaches did not yield any results.
This is my schedule notification method:
$scope.scheduleSingleNotification = function () {
$cordovaLocalNotification.schedule({
id: 1,
title: 'Countdown abgelaufen',
text: 'Die Zeit ist rum!',
badge: 1,
icon: 'file://img/icon_small.png',
data: {
customProperty: 'custom value 1'
}
}).then(function (result) {
console.log('Notification 1 triggered');
});
};
The notification itself works fine, but I am unable to change the icon. Can anyone help me solve this problem?