Update: 2026-07-02 16:52:25
This commit is contained in:
@@ -371,9 +371,17 @@ function dispatchRideToDrivers($driversData, $rideId, $payloadTemplate, $startNa
|
||||
'DriverList' => $payloadForDriver,
|
||||
'order_id' => (string)$rideId
|
||||
];
|
||||
|
||||
// 🆕 Destination Match Indicator
|
||||
$title = "طلب جديد 🔔";
|
||||
if (!empty($driver['is_destination_match'])) {
|
||||
$title = "في طريقك! 📍";
|
||||
$fcmData['is_destination_match'] = "1";
|
||||
}
|
||||
|
||||
$fcmResult = sendFcmNotification(
|
||||
$driverToken,
|
||||
"طلب جديد 🔔",
|
||||
$title,
|
||||
"هناك رحلة جديدة من " . $startNameLoc,
|
||||
$fcmData,
|
||||
"Order",
|
||||
|
||||
Reference in New Issue
Block a user