Web View Parameters
| Param | Default Params/ Custom Params
| Description | IOS/Android | InAppBrowser/ Old Web View | Comments |
| inAppBrowser | Custom Params | The In-app Browser is a new type of web view now supported within our mobile apps. The look and feel will be as if it was opened externally to the app (which in some cases will be an advantage), but the user actually does not move away from the app itself and by closing the browser or clicking back, the user will find himself right back in the business app. In app browsers are commonly used by well known apps such as Facebook, Twitter, Gmail and etc.
When values is set to: true | Both | InAppBrowser | |
| openOnBrowser | Custom Params | Open the device's external browser. | Both | ||
| Preloaded | Custom Params | When values is set to: true It means the web view will be preloaded in the background while the app is loading. Useful for cases where web view loads slow when opening it | Both | Both | Although should work well with inAppBrowser we are now investigating a bug reported that randomly payment screen is not loading in case Preloaded=true + inAppBrowser=true |
| comoSetPostMessage | Custom Params | When value is set to: false It means we ignore internal messages of the web service. usually helps in cases where in the web service the movement between tabs is not working well, completion of payment in the web service. | Both | Old Web View only | Do not use in Restolab web views!! Wth restolabs web views usually changing to inAppBrowser solves such issues |
| comoReloadOnNavigationStateChang | Custom Params | When value is set to: false Usually helps in cases when navigation between pages in the web causes reload of the page. | Both | Old Web View only | |
| devicePlaform | Default Params | This parameter adds the | Both | ||
| allowGesture | Custom Params | When value is set to: true This parameter enables gesture-based back navigation on the old WebView. It already exists on InAppBrowser. | Both | Old Web View only | Needs to be configured with custom parameters. |
| cache | Custom Params | When value is set to: true The webview will load faster | Both | Old Web View only | |
| hideLoader | Custom Params | When value is set to: true Hiding Como loader | Both | Old Web View only | |
| skipTokenForGuest | Custom Params | When value is set to: true When this parameter is set, the app will skip generating a temporary token if the user is not logged in. | Both |
inAppBrowser Appearance parameters
| Param | Description | IOS/Android | InAppBrowser/ Old Web View |
| inAppdismissButtonStyle (String) | The style of the dismiss button. [done/close/cancel] | IOS | InAppBrowser |
| inApppreferredBarTintColor (String) | The color to tint the background of the navigation bar and the toolbar. [white/#FFFFFF] | IOS | InAppBrowser |
| inApppreferredControlTintColor (String) | The color to tint the control buttons on the navigation bar and the toolbar. [gray/#808080] | IOS | InAppBrowser |
| inAppreaderMode (Boolean) | A value that specifies whether Safari should enter Reader mode, if it is available. [true/false] | IOS | InAppBrowser |
| inAppanimated (Boolean) | Animate the presentation. [true/false] | IOS | InAppBrowser |
| inAppmodalPresentationStyle (String) | The presentation style for modally presented view controllers. [automatic/none/fullScreen/pageSheet/formSheet/currentContext/ custom/overFullScreen/overCurrentContext/popover] | IOS | InAppBrowser |
| inAppmodalTransitionStyle (String) | The transition style to use when presenting the view controller. [coverVertical/flipHorizontal/crossDissolve/partialCurl] | IOS | InAppBrowser |
| inAppmodalEnabled (Boolean) | Present the SafariViewController modally or as push instead. [true/false] | IOS | InAppBrowser |
| inAppenableBarCollapsing (Boolean) | Determines whether the browser's tool bars will collapse or not. [true/false] | IOS | InAppBrowser |
| inAppephemeralWebSession (Boolean) | Prevent re-use cookies of previous session (openAuth only) [true/false] | IOS | InAppBrowser |
| inAppshowTitle (Boolean) | Sets whether the title should be shown in the custom tab. [true/false] | Android | InAppBrowser |
| inApptoolbarColor (String) | Sets the toolbar color. [gray/#808080] | Android | InAppBrowser |
| inAppsecondaryToolbarColor (String) | Sets the color of the secondary toolbar. [white/#FFFFFF] | Android | InAppBrowser |
| inAppenableUrlBarHiding (Boolean) | Enables the url bar to hide as the user scrolls down on the page. [true/false] | Android | InAppBrowser |
| inAppenableDefaultShare (Boolean) | Adds a default share item to the menu. [true/false] | Android | InAppBrowser |
| inAppanimations (Object) | Sets the start and exit animations. [{ startEnter, startExit, endEnter, endExit }] | Android | InAppBrowser |
| inAppheaders (Object) | The data are key/value pairs, they will be sent in the HTTP request headers for the provided url. [{ 'Authorization': 'Bearer ...' }] | Android | InAppBrowser |
| inAppforceCloseOnRedirection (Boolean) | Open Custom Tab in a new task to avoid issues redirecting back to app scheme. [true/false] | Android | InAppBrowser |
| inApphasBackButton (Boolean) | Sets a back arrow instead of the default X icon to close the custom tab. [true/false] | Android | InAppBrowser |
| inAppbrowserPackage (String) | Package name of a browser to be used to handle Custom Tabs. | Android | InAppBrowser |
| inAppshowInRecents (Boolean) | Determining whether browsed website should be shown as separate entry in Android recents/multitasking view. [true/false] | Android | InAppBrowser |
| hideNavigationButtons (Boolean) | Determines whether the navigation buttons are shown in the page footer. Note: To use this setting, you must disable preload of the WebView. | Both | Old Web View only |