diff --git a/src/Service/FCMSender.php b/src/Service/FCMSender.php index 01d72252..9cd15356 100644 --- a/src/Service/FCMSender.php +++ b/src/Service/FCMSender.php @@ -71,8 +71,6 @@ class FCMSender foreach ($sessions as $sess) { $device_id = $sess->getDevicePushID(); - error_log($sess->getID()); - if (!empty($device_id)) { // send fcm notification $device_ids[] = $device_id; @@ -84,6 +82,9 @@ class FCMSender return; } + // attach jo id + $data['jo_id'] = $job_order->getID(); + // send fcm notification $result = $this->send($device_ids, $this->translator->trans($title), $this->translator->trans($body), $data);