From b3ce31bff82f54766ab389979a1bcfbb435f1e5a Mon Sep 17 00:00:00 2001 From: HakamRaza Date: Fri, 10 Jun 2022 12:49:20 +0800 Subject: [PATCH] Report other exceptions to Error Handler. (Laravel Error Handling) [https://laravel.com/docs/8.x/errors] failed to catch other throwable exceptions such as UnexpectedResponseException. report() helper is use to report these exceptions via exception handler for customized handling. --- src/ExpoChannel.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ExpoChannel.php b/src/ExpoChannel.php index b0499d9f..126435d8 100644 --- a/src/ExpoChannel.php +++ b/src/ExpoChannel.php @@ -59,6 +59,8 @@ public function send($notifiable, Notification $notification) $this->events->dispatch( new NotificationFailed($notifiable, $notification, 'expo-push-notifications', $e->getMessage()) ); + } catch (\Throwable $e) { + report($e); } }