diff options
author | Joas Schilling <coding@schilljs.com> | 2017-04-19 14:51:03 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-04-19 14:51:03 +0300 |
commit | c4625ff19a4ef5f242713f0fe7817aa04bdd930d (patch) | |
tree | 702cf53b79c98d5ab12b3d41b52892831b39d88b | |
parent | 37f5a935f1dc285ab88bd3a64a5dcffe9364c441 (diff) |
Allow sending multiple notifications via the same proxy
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r-- | lib/Push.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Push.php b/lib/Push.php index baf2c87..d1d5471 100644 --- a/lib/Push.php +++ b/lib/Push.php @@ -92,7 +92,7 @@ class Push { if (!isset($pushNotifications[$device['proxyserver']])) { $pushNotifications[$device['proxyserver']] = []; } - $pushNotifications[$device['proxyserver']] = json_encode($this->encryptAndSign($userKey, $device, $notification)); + $pushNotifications[$device['proxyserver']][] = json_encode($this->encryptAndSign($userKey, $device, $notification)); } catch (InvalidTokenException $e) { // Token does not exist anymore, should drop the push device entry $this->deletePushToken($device['token']); |