dev_v_3.13.6_CR_6804
haroon amjad 1 year ago
parent f8d797f80a
commit f714d17686

@ -92,8 +92,8 @@ class DoctorsListService extends BaseService {
Future<Map> getDoctorsListByName(String docName, int languageID, BuildContext context) async { Future<Map> getDoctorsListByName(String docName, int languageID, BuildContext context) async {
Map<String, dynamic> request; Map<String, dynamic> request;
late double lat; late double lat = 0.0;
late double long; late double long = 0.0;
if (await this.sharedPref.getObject(USER_PROFILE) != null) { if (await this.sharedPref.getObject(USER_PROFILE) != null) {
var data = AuthenticatedUser.fromJson(await this.sharedPref.getObject(USER_PROFILE)); var data = AuthenticatedUser.fromJson(await this.sharedPref.getObject(USER_PROFILE));

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

Loading…
Cancel
Save