25-10-6/1

This commit is contained in:
Hamza-Ayed
2025-10-05 23:45:18 +03:00
parent f5dfe2c0fe
commit de84662e02
18 changed files with 590 additions and 451 deletions

View File

@@ -19,6 +19,7 @@ import '../../constant/info.dart';
import '../../constant/links.dart';
import '../../main.dart';
import '../../print.dart';
import '../firebase/notification_service.dart';
import '../functions/crud.dart';
import '../functions/encrypt_decrypt.dart';
import '../functions/toast.dart';
@@ -134,13 +135,23 @@ class PaymentController extends GetxController {
});
if (res != 'failure') {
Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
'Cancel',
'Trip Cancelled. The cost of the trip will be added to your wallet.'
.tr,
Get.find<MapPassengerController>().driverToken,
[],
'cancel.wav',
// Get.find<FirebaseMessagesController>().sendNotificationToDriverMAP(
// 'Cancel',
// 'Trip Cancelled. The cost of the trip will be added to your wallet.'
// .tr,
// Get.find<MapPassengerController>().driverToken,
// [],
// 'cancel',
// );
await NotificationService.sendNotification(
target: Get.find<MapPassengerController>().driverToken.toString(),
title: 'Cancel',
body:
'Trip Cancelled. The cost of the trip will be added to your wallet.'
.tr,
isTopic: false, // Important: this is a token
tone: 'cancel',
driverList: [],
);
}
var paymentTokenWaitPassenger1 =