Update: 2026-07-09 15:01:29
This commit is contained in:
@@ -509,6 +509,15 @@ class LoginController extends GetxController {
|
|||||||
|
|
||||||
await storage.write(key: BoxName.fingerPrint, value: fingerPrint);
|
await storage.write(key: BoxName.fingerPrint, value: fingerPrint);
|
||||||
|
|
||||||
|
// تحديث التوكن والبصمة في الباك إند ليتمكن التستر من استقبال الإشعارات
|
||||||
|
await CRUD().post(
|
||||||
|
link: "${AppLink.server}/ride/firebase/addToken.php",
|
||||||
|
payload: {
|
||||||
|
'token': box.read(BoxName.tokenFCM).toString(),
|
||||||
|
'fingerPrint': fingerPrint.toString(),
|
||||||
|
'passengerID': box.read(BoxName.passengerID).toString(),
|
||||||
|
});
|
||||||
|
|
||||||
sendPassengerLocation();
|
sendPassengerLocation();
|
||||||
Get.offAll(() => const MapPagePassenger());
|
Get.offAll(() => const MapPagePassenger());
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user