diff --git a/www/push.js b/www/push.js index 834e3c056..44408b491 100644 --- a/www/push.js +++ b/www/push.js @@ -140,6 +140,7 @@ PushNotification.prototype.getApplicationIconBadgeNumber = function(successCallb */ PushNotification.prototype.clearAllNotifications = function(successCallback, errorCallback) { + if (!successCallback) { successCallback = function() {}; } if (!errorCallback) { errorCallback = function() {}; } if (typeof errorCallback !== 'function') {