|
|
|
|
@ -27,7 +27,12 @@ var _InAppBrowserOptions = InAppBrowserClassOptions(
|
|
|
|
|
ios: IOSInAppWebViewOptions(applePayAPIEnabled: true, isFraudulentWebsiteWarningEnabled: false)),
|
|
|
|
|
crossPlatform: InAppBrowserOptions(hideUrlBar: true, toolbarTopBackgroundColor: Colors.black),
|
|
|
|
|
android: AndroidInAppBrowserOptions(),
|
|
|
|
|
ios: IOSInAppBrowserOptions(hideToolbarBottom: true, toolbarBottomBackgroundColor: Colors.white, closeButtonColor: Colors.white, presentationStyle: IOSUIModalPresentationStyle.OVER_FULL_SCREEN));
|
|
|
|
|
ios: IOSInAppBrowserOptions(
|
|
|
|
|
hideToolbarBottom: true,
|
|
|
|
|
toolbarBottomBackgroundColor: Colors.white,
|
|
|
|
|
closeButtonColor: Colors.white,
|
|
|
|
|
closeButtonCaption: "Close",
|
|
|
|
|
presentationStyle: IOSUIModalPresentationStyle.OVER_FULL_SCREEN));
|
|
|
|
|
|
|
|
|
|
class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
_PAYMENT_TYPE paymentType;
|
|
|
|
|
@ -279,7 +284,7 @@ class MyInAppBrowser extends InAppBrowser {
|
|
|
|
|
|
|
|
|
|
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 sharedPref.getString(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));
|
|
|
|
|
|