Commit 8e8546c0 authored by Sebastián Katzer's avatar Sebastián Katzer
Browse files

Only add platform specific properties if required.

parent a394d835
Loading
Loading
Loading
Loading
+11 −2
Changes for www/local-notification.js: 11 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -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);
        };