|
@@ -40,6 +40,10 @@ LocalNotification.prototype = {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (defaults.id) {
|
|
|
|
|
+ defaults.id = defaults.id.toString();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (typeof defaults.date == 'object') {
|
|
if (typeof defaults.date == 'object') {
|
|
|
defaults.date = Math.round(defaults.date.getTime()/1000);
|
|
defaults.date = Math.round(defaults.date.getTime()/1000);
|
|
|
}
|
|
}
|
|
@@ -55,7 +59,7 @@ LocalNotification.prototype = {
|
|
|
* @param {String} id
|
|
* @param {String} id
|
|
|
*/
|
|
*/
|
|
|
cancel: function (id) {
|
|
cancel: function (id) {
|
|
|
- cordova.exec(null, null, 'LocalNotification', 'cancel', [id]);
|
|
|
|
|
|
|
+ cordova.exec(null, null, 'LocalNotification', 'cancel', [id.toString()]);
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -68,4 +72,4 @@ LocalNotification.prototype = {
|
|
|
|
|
|
|
|
var plugin = new LocalNotification();
|
|
var plugin = new LocalNotification();
|
|
|
|
|
|
|
|
-module.exports = plugin;
|
|
|
|
|
|
|
+module.exports = plugin;
|