25-3/18/1
This commit is contained in:
@@ -43,6 +43,7 @@ import '../firebase/firbase_messge.dart';
|
||||
import '../functions/audio_record1.dart';
|
||||
import '../functions/crud.dart';
|
||||
import '../functions/launch.dart';
|
||||
import '../functions/package_info.dart';
|
||||
import '../functions/secure_storage.dart';
|
||||
import '../payment/payment_controller.dart';
|
||||
import 'vip_waitting_page.dart';
|
||||
@@ -4907,22 +4908,27 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
|
||||
addToken() async {
|
||||
String fingerPrint = await DeviceHelper.getDeviceFingerprint();
|
||||
|
||||
await CRUD()
|
||||
.post(link: "${AppLink.server}/ride/firebase/add.php", payload: {
|
||||
'token': box.read(BoxName.tokenFCM),
|
||||
'passengerID': box.read(BoxName.passengerID).toString()
|
||||
'token': (box.read(BoxName.tokenFCM.toString())),
|
||||
'passengerID': box.read(BoxName.passengerID).toString(),
|
||||
"fingerPrint": fingerPrint
|
||||
});
|
||||
CRUD().post(
|
||||
link: "${AppLink.tripzAlexandriaServer}/ride/firebase/add.php",
|
||||
payload: {
|
||||
'token': box.read(BoxName.tokenFCM),
|
||||
'passengerID': box.read(BoxName.passengerID).toString()
|
||||
'token': (box.read(BoxName.tokenFCM.toString())),
|
||||
'passengerID': box.read(BoxName.passengerID).toString(),
|
||||
"fingerPrint": fingerPrint
|
||||
});
|
||||
CRUD().post(
|
||||
link: "${AppLink.tripzGizaServer}/ride/firebase/add.php",
|
||||
payload: {
|
||||
'token': box.read(BoxName.tokenFCM),
|
||||
'passengerID': box.read(BoxName.passengerID).toString()
|
||||
'token': (box.read(BoxName.tokenFCM.toString())),
|
||||
'passengerID': box.read(BoxName.passengerID).toString(),
|
||||
"fingerPrint": fingerPrint
|
||||
});
|
||||
}
|
||||
|
||||
@@ -5325,6 +5331,15 @@ class MapPassengerController extends GetxController {
|
||||
}
|
||||
}
|
||||
|
||||
addFingerPrint() async {
|
||||
String fingerPrint = await DeviceHelper.getDeviceFingerprint();
|
||||
await CRUD().postWallet(link: AppLink.addFingerPrint, payload: {
|
||||
'token': (box.read(BoxName.tokenFCM.toString())),
|
||||
'passengerID': box.read(BoxName.passengerID).toString(),
|
||||
"fingerPrint": fingerPrint
|
||||
});
|
||||
}
|
||||
|
||||
firstTimeRunToGetCoupon() async {
|
||||
// Check if it's the first time and the app is installed and gift token is available
|
||||
if (box.read(BoxName.isFirstTime).toString() == '0' &&
|
||||
@@ -5377,6 +5392,7 @@ class MapPassengerController extends GetxController {
|
||||
addCustomEndIcon();
|
||||
// addToken();
|
||||
await getLocation();
|
||||
addFingerPrint();
|
||||
getPassengerLocationUniversity();
|
||||
_initializePolygons();
|
||||
// await addToken();
|
||||
|
||||
Reference in New Issue
Block a user