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) {