|
|
|
|
@ -218,7 +218,7 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
tamaraRequestModel.customerName = patientName;
|
|
|
|
|
tamaraRequestModel.fileNumber = patientID.toString();
|
|
|
|
|
tamaraRequestModel.patientOutSA = authenticatedUser.outSA == 1 ? true : false;
|
|
|
|
|
tamaraRequestModel.deviceToken = await AppSharedPreferences().getString(PUSH_TOKEN);
|
|
|
|
|
tamaraRequestModel.deviceToken = await AppSharedPreferences().getStringWithDefaultValue(PUSH_TOKEN, "");
|
|
|
|
|
tamaraRequestModel.latitude = this.lat.toString();
|
|
|
|
|
tamaraRequestModel.longitude = this.long.toString();
|
|
|
|
|
tamaraRequestModel.serviceID = servID;
|
|
|
|
|
@ -290,8 +290,8 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
form = form.replaceFirst('PATIENT_TYPE_ID', patientData == null ? patientType.toString() : "1");
|
|
|
|
|
|
|
|
|
|
Platform.isIOS
|
|
|
|
|
? form = form.replaceFirst('DEVICE_TOKEN', await AppSharedPreferences().getString(PUSH_TOKEN) + "," + await AppSharedPreferences().getString(ONESIGNAL_APNS_TOKEN))
|
|
|
|
|
: form = form.replaceFirst('DEVICE_TOKEN', await sharedPref.getString(PUSH_TOKEN) ?? "");
|
|
|
|
|
? form = form.replaceFirst('DEVICE_TOKEN', await AppSharedPreferences().getStringWithDefaultValue(PUSH_TOKEN, "") + "," + await AppSharedPreferences().getStringWithDefaultValue(ONESIGNAL_APNS_TOKEN, ""))
|
|
|
|
|
: form = form.replaceFirst('DEVICE_TOKEN', await sharedPref.getStringWithDefaultValue(PUSH_TOKEN, "") ?? "");
|
|
|
|
|
|
|
|
|
|
// form = form.replaceFirst('DEVICE_TOKEN', await AppSharedPreferences().getString(PUSH_TOKEN) + "," + await AppSharedPreferences().getString(ONESIGNAL_APNS_TOKEN));
|
|
|
|
|
// form = form.replaceFirst('DEVICE_TOKEN', await sharedPref.getString(PUSH_TOKEN));
|
|
|
|
|
|