24-12/31/1

This commit is contained in:
Hamza-Ayed
2024-12-31 21:26:03 +03:00
parent 651df6b897
commit 200284a71a
9 changed files with 5334 additions and 2265 deletions

View File

@@ -125,10 +125,10 @@ class FirebaseMessagesController extends GetxController {
notificationController.showNotification(
'Order', message.notification!.body!, 'Order');
}
} else if (message.notification!.title! == 'Accepted Ride') {
} else if (message.notification!.title! == 'Accepted Ride'.tr) {
if (Platform.isAndroid) {
notificationController.showNotification(
'Apply Order'.tr, 'Driver Applied the Ride for You'.tr, 'ding');
'Accepted Ride'.tr, 'Driver Accepted the Ride for You'.tr, 'ding');
}
var passengerList = message.data['passengerList'];

View File

@@ -1956,8 +1956,8 @@ class MapPassengerController extends GetxController {
final body = constructNotificationBody(driverData);
// Log.print('body:ww ${body}');
FirebaseMessagesController().sendNotificationToDriverMAP(
'OrderSpeed',
rideId,
'Order'.tr,
endNameAddress,
driverData['token'].toString(),
body,
'order.wav');

File diff suppressed because it is too large Load Diff