Commit 28ab02b7 by Sebastián Katzer

Updated samples for icon and smallIcon

parent c2505ca7
......@@ -188,7 +188,8 @@
cordova.plugins.notification.local.schedule({
id: 1,
text: 'Test Message 1',
icon: 'http://www.optimizeordie.de/wp-content/plugins/social-media-widget/images/default/64/googleplus.png',
icon: 'http://3.bp.blogspot.com/-Qdsy-GpempY/UU_BN9LTqSI/AAAAAAAAAMA/LkwLW2yNBJ4/s1600/supersu.png',
smallIcon: 'res://cordova',
sound: null,
data: { test: id }
});
......@@ -197,13 +198,18 @@
scheduleMultiple = function () {
cordova.plugins.notification.local.schedule([{
id: 1,
text: 'Multi Message 1'
text: 'Multi Message 1',
icon: 'res://cordova'
}, {
id: 2,
text: 'Multi Message 2'
text: 'Multi Message 2',
icon: 'res://icon',
smallIcon: 'ic_media_play'
}, {
id: 3,
text: 'Multi Message 3'
text: 'Multi Message 3',
icon: 'res://icon',
smallIcon: 'ic_media_pause'
}]);
};
......@@ -230,7 +236,9 @@
id: 1,
text: 'Scheduled every minute',
every: 'minute',
sound: sound
sound: sound,
icon: 'res://icon',
smallIcon: 'res://ic_popup_sync'
});
};
</script>
......
......@@ -61,8 +61,8 @@ exports.applyPlatformSpecificOptions = function () {
switch (device.platform) {
case 'Android':
defaults.icon = 'res://icon';
defaults.smallIcon = 'res://ic_popup_reminder';
defaults.icon = 'res://ic_popup_reminder';
defaults.smallIcon = undefined;
defaults.ongoing = false;
defaults.autoClear = true;
defaults.led = 'FFFFFF';
......
......@@ -188,7 +188,8 @@
cordova.plugins.notification.local.schedule({
id: 1,
text: 'Test Message 1',
icon: 'http://www.optimizeordie.de/wp-content/plugins/social-media-widget/images/default/64/googleplus.png',
icon: 'http://3.bp.blogspot.com/-Qdsy-GpempY/UU_BN9LTqSI/AAAAAAAAAMA/LkwLW2yNBJ4/s1600/supersu.png',
smallIcon: 'res://cordova',
sound: null,
data: { test: id }
});
......@@ -197,13 +198,18 @@
scheduleMultiple = function () {
cordova.plugins.notification.local.schedule([{
id: 1,
text: 'Multi Message 1'
text: 'Multi Message 1',
icon: 'res://cordova'
}, {
id: 2,
text: 'Multi Message 2'
text: 'Multi Message 2',
icon: 'res://icon',
smallIcon: 'ic_media_play'
}, {
id: 3,
text: 'Multi Message 3'
text: 'Multi Message 3',
icon: 'res://icon',
smallIcon: 'ic_media_pause'
}]);
};
......@@ -230,7 +236,9 @@
id: 1,
text: 'Scheduled every minute',
every: 'minute',
sound: sound
sound: sound,
icon: 'res://icon',
smallIcon: 'res://ic_popup_sync'
});
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment