add new features like realtime 2026-05-29-01

This commit is contained in:
Hamza-Ayed
2026-05-29 01:32:38 +03:00
parent b601f3f2ea
commit 243a88b6ce
2 changed files with 4 additions and 2 deletions

View File

@@ -94,8 +94,9 @@ try {
$passengerTokenRow = $stmtToken->fetch(); $passengerTokenRow = $stmtToken->fetch();
if ($passengerTokenRow && !empty($passengerTokenRow['token'])) { if ($passengerTokenRow && !empty($passengerTokenRow['token'])) {
$decryptedToken = $encryptionHelper->decryptData($passengerTokenRow['token']);
sendFcmNotification( sendFcmNotification(
$passengerTokenRow['token'], $decryptedToken,
'Incoming Call', 'Incoming Call',
'Incoming WebRTC voice call', 'Incoming WebRTC voice call',
[ [

View File

@@ -99,8 +99,9 @@ try {
$driverTokenRow = $stmtToken->fetch(); $driverTokenRow = $stmtToken->fetch();
if ($driverTokenRow && !empty($driverTokenRow['token'])) { if ($driverTokenRow && !empty($driverTokenRow['token'])) {
$decryptedToken = $encryptionHelper->decryptData($driverTokenRow['token']);
sendFcmNotification( sendFcmNotification(
$driverTokenRow['token'], $decryptedToken,
'Incoming Call', 'Incoming Call',
'Incoming WebRTC voice call', 'Incoming WebRTC voice call',
[ [