From 4bea2a7469ab2bd677e12d440b457e1d5383b1f0 Mon Sep 17 00:00:00 2001 From: Simon MacDonald Date: Sat, 16 Jul 2016 10:56:47 -0400 Subject: [PATCH] Issue #1080: clearAllNotifications not working on iOS --- www/push.js | 1 + 1 file changed, 1 insertion(+) 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') {