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

@@ -7,6 +7,7 @@ import '../../constant/box_name.dart';
import '../../constant/links.dart';
import '../../main.dart';
import '../../views/widgets/mydialoug.dart';
import '../firebase/notification_service.dart';
import '../functions/crud.dart';
class PassengerNotificationController extends GetxController {
@@ -47,12 +48,20 @@ class PassengerNotificationController extends GetxController {
'title': title,
'body': body,
});
Get.find<FirebaseMessagesController>().sendNotificationToPassengerToken(
title,
body,
'token',
[],
'iphone_ringtone.wav',
// Get.find<FirebaseMessagesController>().sendNotificationToPassengerToken(
// title,
// body,
// 'token',
// [],
// 'iphone_ringtone',
// );
await NotificationService.sendNotification(
target: 'token'.toString(),
title: title,
body: body.tr,
isTopic: false, // Important: this is a token
tone: 'cancel',
driverList: [],
);
}