diff --git a/lib/Push.php b/lib/Push.php index 85de6a0ad..acae9d998 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -319,7 +319,7 @@ protected function encryptAndSign(Key $userKey, array $device, int $id, INotific // Max length of encryption is 255, so we need to make sure the subject is shorter. // We also substract a buffer of 10 bytes. - $maxDataLength = 255 - strlen(json_encode($data)) - 10; + $maxDataLength = 200 - strlen(json_encode($data)); $data['subject'] = $this->shortenJsonEncodedMultibyte($notification->getParsedSubject(), $maxDataLength); if ($notification->getParsedSubject() !== $data['subject']) { $data['subject'] .= '…';