From f0ae44406e102734dd21247106a83ef471c38f34 Mon Sep 17 00:00:00 2001 From: Djery-Tom Date: Thu, 28 Oct 2021 13:09:41 +0100 Subject: [PATCH] Fix user notification --- app/Listeners/NotifyUser.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Listeners/NotifyUser.php b/app/Listeners/NotifyUser.php index 865f5e7..3d3e900 100644 --- a/app/Listeners/NotifyUser.php +++ b/app/Listeners/NotifyUser.php @@ -54,7 +54,10 @@ class NotifyUser $body = new \stdClass(); $body->user_code = $user->user_code; $body->message = $event->notification; - $body->data = []; + $data = new \stdClass(); + $data->screen = "notificationview"; + $data->data = new \stdClass(); + $data->data->subscription_id = $data->data->id = $subscription->id; try { $body->date = $this->getCurrentTimeByCountryCode($user->network->country->code_country); } catch (Throwable $t) {