浏览代码

`ongoing` is platform specific

Sebastián Katzer 12 年之前
父节点
当前提交
e72f497d02
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      www/local-notification.js

+ 5 - 5
www/local-notification.js

@@ -24,7 +24,6 @@ var LocalNotification = function () {
         message:    '',
         title:      '',
         autoCancel: false,
-        ongoing:    false,
         badge:      0,
         id:         '0',
         json:       '',
@@ -84,11 +83,12 @@ LocalNotification.prototype = {
 
         switch (device.platform) {
         case 'Android':
-            defaults.icon      = 'icon';
-            defaults.smallIcon = null;
-            defaults.sound     = 'TYPE_NOTIFICATION'; break;
+            defaults.icon       = 'icon';
+            defaults.smallIcon  = null;
+            defaults.ongoing    = false;
+            defaults.sound      = 'TYPE_NOTIFICATION'; break;
         case 'iOS':
-            defaults.sound = ''; break;
+            defaults.sound      = ''; break;
         case 'WinCE': case 'Win32NT':
             defaults.smallImage = null;
             defaults.image      = null;