diff --git a/keyserver/src/push/send.js b/keyserver/src/push/send.js --- a/keyserver/src/push/send.js +++ b/keyserver/src/push/send.js @@ -768,13 +768,6 @@ ) { return notifWithMessageInfos; } - const notifCopy = _cloneDeep(notif); - if (notifCopy.length() > apnMaxNotificationPayloadByteSize) { - console.warn( - `${platformDetails.platform} notification ${uniqueID} ` + - `exceeds size limit, even with messageInfos omitted`, - ); - } return notif; }; @@ -876,14 +869,6 @@ ) { return notifWithMessageInfos; } - if ( - Buffer.byteLength(JSON.stringify(notif)) > - fcmMaxNotificationPayloadByteSize - ) { - console.warn( - `Android notification ${notifID} exceeds size limit, even with messageInfos omitted`, - ); - } return notif; };