25-10-5/1
This commit is contained in:
@@ -8,6 +8,7 @@ import '../../constant/links.dart';
|
||||
import '../../constant/style.dart';
|
||||
import '../../main.dart';
|
||||
import '../../views/widgets/elevated_btn.dart';
|
||||
import '../firebase/notification_service.dart';
|
||||
import '../functions/crud.dart';
|
||||
|
||||
class PassengerNotificationController extends GetxController {
|
||||
@@ -53,8 +54,16 @@ class PassengerNotificationController extends GetxController {
|
||||
'title': title,
|
||||
'body': body,
|
||||
});
|
||||
FirebaseMessagesController()
|
||||
.sendNotificationToPassengerToken(title, body, 'token', [], 'ding.wav');
|
||||
// FirebaseMessagesController()
|
||||
// .sendNotificationToPassengerToken(title, body, 'token', [], 'ding.wav');
|
||||
NotificationService.sendNotification(
|
||||
target: 'token'.toString(),
|
||||
title: title,
|
||||
body: body,
|
||||
isTopic: false, // Important: this is a token
|
||||
tone: 'ding',
|
||||
driverList: [],
|
||||
);
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user