Explorar el Código

The `TYPE_NOTIFICATION` sound should play by default on Android

Sebastián Katzer hace 12 años
padre
commit
f5c49b06cd
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      www/local-notification.js

+ 2 - 2
www/local-notification.js

@@ -31,8 +31,8 @@ LocalNotification.prototype = {
 
         switch (device.platform) {
             case 'Android':
-                defaults.icon= 'icon';
-                defaults.sound = null; break;
+                defaults.icon = 'icon';
+                defaults.sound = 'TYPE_NOTIFICATION'; break;
             case 'iOS':
                 defaults.sound = ''; break;
             case 'WinCE': case 'Win32NT':