26-1-22/1

This commit is contained in:
Hamza-Ayed
2026-01-22 19:30:31 +03:00
parent fbfde115a8
commit 12c5ce31a2
9 changed files with 504 additions and 502 deletions

View File

@@ -384,7 +384,7 @@ class LoginDriverController extends GetxController {
textConfirm: 'Verify'.tr,
confirmTextColor: Colors.white,
onConfirm: () {
// Get.back();
Get.back();
// انتقل لصفحة OTP الجديدة
Get.to(
() => OtpVerificationPage(

View File

@@ -90,7 +90,7 @@ class OtpVerificationController extends GetxController {
if (response != 'failure') {
Log.print('response: ${response}');
Get.back(); // توجه إلى الصفحة التالية
// Get.back(); // توجه إلى الصفحة التالية
await CRUD().post(
link: '${AppLink.paymentServer}/auth/token/update_driver_auth.php',
payload: {
@@ -98,17 +98,7 @@ class OtpVerificationController extends GetxController {
'fingerPrint': finger.toString(),
'captain_id': box.read(BoxName.driverID).toString(),
});
final fcm = Get.isRegistered<FirebaseMessagesController>()
? Get.find<FirebaseMessagesController>()
: Get.put(FirebaseMessagesController());
// await fcm.sendNotificationToDriverMAP(
// 'token change',
// 'change device'.tr,
// ptoken.toString(),
// [],
// 'cancel.wav',
// );
await NotificationService.sendNotification(
target: ptoken.toString(),
title: 'token change'.tr,