diff --git a/lib/Push.php b/lib/Push.php index 571059c5d..495015c66 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -211,6 +211,7 @@ public function pushToDevice(int $id, INotification $notification, ?OutputInterf $maxAge = time() - 60 * 24 * 60 * 60; foreach ($devices as $device) { + $device['token'] = (int) $device['token']; $this->printInfo(''); $this->printInfo('Device token:' . $device['token']); @@ -262,6 +263,7 @@ public function pushDeleteToDevice(string $userId, int $notificationId, string $ $userKey = $this->keyManager->getKey($user); foreach ($devices as $device) { + $device['token'] = (int) $device['token']; if (!$this->validateToken($device['token'], $maxAge)) { // Token does not exist anymore continue;