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 @@ -713,13 +713,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; }; @@ -821,14 +814,6 @@ ) { return notifWithMessageInfos; } - if ( - Buffer.byteLength(JSON.stringify(notif)) > - fcmMaxNotificationPayloadByteSize - ) { - console.warn( - `Android notification ${notifID} exceeds size limit, even with messageInfos omitted`, - ); - } return notif; };