25-10-5/1
This commit is contained in:
@@ -8,6 +8,7 @@ import '../../constant/colors.dart';
|
||||
import '../../constant/links.dart';
|
||||
import '../../constant/style.dart';
|
||||
import '../../controller/firebase/firbase_messge.dart';
|
||||
import '../../controller/firebase/notification_service.dart';
|
||||
import '../../controller/functions/crud.dart';
|
||||
import '../../controller/home/captin/home_captain_controller.dart';
|
||||
import '../../controller/notification/ride_available_controller.dart';
|
||||
@@ -338,12 +339,20 @@ class RideAvailableCard extends StatelessWidget {
|
||||
payload: {'id': rideInfo['id'], 'status': 'Applied'});
|
||||
}
|
||||
|
||||
FirebaseMessagesController().sendNotificationToPassengerToken(
|
||||
"Accepted Ride".tr,
|
||||
'your ride is Accepted'.tr,
|
||||
rideInfo['passengerToken'].toString(),
|
||||
bodyToPassenger,
|
||||
'start.wav');
|
||||
// FirebaseMessagesController().sendNotificationToPassengerToken(
|
||||
// "Accepted Ride".tr,
|
||||
// 'your ride is Accepted'.tr,
|
||||
// rideInfo['passengerToken'].toString(),
|
||||
// bodyToPassenger,
|
||||
// 'start.wav');
|
||||
NotificationService.sendNotification(
|
||||
target: rideInfo['passengerToken'].toString(),
|
||||
title: 'Accepted Ride',
|
||||
body: 'your ride is Accepted'.tr,
|
||||
isTopic: false, // Important: this is a token
|
||||
tone: 'start',
|
||||
driverList: [],
|
||||
);
|
||||
Get.back();
|
||||
Get.to(() => PassengerLocationMapPage(), arguments: {
|
||||
'passengerLocation': rideInfo['start_location'].toString(),
|
||||
|
||||
Reference in New Issue
Block a user