Commit 8e8546c0 by Sebastián Katzer

Only add platform specific properties if required.

parent a394d835
......@@ -25,12 +25,21 @@ LocalNotification.prototype = {
title: '',
badge: 0,
id: 0,
icon: 'icon', // nur Android
sound: '', // nur iOS
background: '',
foreground: ''
};
switch (device.platform) {
case 'Android':
defaults.icon = 'icon'; break;
case 'iOS':
defaults.sound = ''; break;
case 'WinCE': case 'Win32NT':
defaults.smallImage = null;
defaults.image = null;
defaults.wideImage = null;
};
var callbackFn = function (cmd) {
eval(cmd);
};
......
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