diff --git a/lib/push/crypto.js b/lib/push/crypto.js --- a/lib/push/crypto.js +++ b/lib/push/crypto.js @@ -196,7 +196,7 @@ return { notification: unencryptedNotification, payloadSizeExceeded: notificationSizeValidator - ? notificationSizeValidator(unencryptedNotification) + ? !notificationSizeValidator(unencryptedNotification) : false, }; }