25-12-1/1
This commit is contained in:
@@ -91,18 +91,8 @@ class OtpVerificationController extends GetxController {
|
||||
);
|
||||
|
||||
if (response != 'failure' && response['status'] == 'success') {
|
||||
final fcm = Get.isRegistered<FirebaseMessagesController>()
|
||||
? Get.find<FirebaseMessagesController>()
|
||||
: Get.put(FirebaseMessagesController());
|
||||
|
||||
// await fcm.sendNotificationToDriverMAP(
|
||||
// 'token change',
|
||||
// 'change device'.tr,
|
||||
// ptoken.toString(),
|
||||
// [],
|
||||
// 'cancel',
|
||||
// );
|
||||
await NotificationService.sendNotification(
|
||||
category: 'token change',
|
||||
target: ptoken.toString(),
|
||||
title: 'token change'.tr,
|
||||
body: 'change device'.tr,
|
||||
@@ -110,21 +100,7 @@ class OtpVerificationController extends GetxController {
|
||||
tone: 'cancel',
|
||||
driverList: [],
|
||||
);
|
||||
await CRUD().post(
|
||||
link: "${AppLink.seferPaymentServer}/ride/firebase/add.php",
|
||||
payload: {
|
||||
'token': (box.read(BoxName.tokenFCM.toString())),
|
||||
'passengerID': box.read(BoxName.passengerID).toString(),
|
||||
"fingerPrint": fingerPrint.toString(),
|
||||
});
|
||||
// CRUD().post(
|
||||
// link:
|
||||
// '${AppLink.seferPaymentServer}/auth/token/update_passenger_token.php',
|
||||
// payload: {
|
||||
// 'token': box.read(BoxName.tokenFCM).toString(),
|
||||
// 'fingerPrint': fingerPrint.toString(),
|
||||
// 'passengerID': box.read(BoxName.passengerID).toString(),
|
||||
// });
|
||||
|
||||
Get.offAll(() => const MapPagePassenger());
|
||||
} else {
|
||||
Get.snackbar('Verification Failed', 'OTP is incorrect or expired');
|
||||
|
||||
Reference in New Issue
Block a user