Skip to content

Commit

Permalink
Quick fix to see errors
Browse files Browse the repository at this point in the history
  • Loading branch information
baptiste-dulac committed May 2, 2019
1 parent 86ee2ea commit 28d9474
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions PushNotificationSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,14 @@ public function send()
{
foreach ($this->messages as $message)
{
if ($message instanceof IOSMessage && $this->iOS != null) {
$this->iOS->send($message);
} else if ($message instanceof AndroidMessage && $this->android != null) {
$this->android->send($message);
try {
if ($message instanceof IOSMessage && $this->iOS != null) {
$this->iOS->send($message);
} else if ($message instanceof AndroidMessage && $this->android != null) {
$this->android->send($message);
}
} catch (\Exception $e) {
echo $e->getMessage();
}
}
$this->messages = [];
Expand Down

0 comments on commit 28d9474

Please sign in to comment.