Skip to main content
Version: 4.62

openBrowser

Opens a website with the specified URL. Can be either within an internal browser overlaying the app or jumping out of the app context and using the user's default browser.

Field Configurations

KeyTypeDescriptionDefault Value
"params" (required)Objectundefinednull

Parameters

KeyTypeDescriptionDefault Value
"alertMessage"StringMessage for the pop-up when exiting the app.null
"alertTitle"StringTitle for the pop-up when exiting the app.null
"async"BooleanSpecifies whether the action should perform asynchronously.null
"external"Boolean,StringOpens the URL in the external browser.null
"showAlert"Boolean,StringExecutes an askUser action before the URL is openedtrue
"url" (required)StringThe URL to be opened.null

Inherited

From Base Action

Base Action

Field Configurations

KeyTypeDescriptionDefault Value
"dynamicParams"ObjectDynamic params to retrieve data from a specific context e.g. a userSetting.null
"leadingDelimiter"StringThe leading mustache delimiter to use.null
"params"Object,ArrayObject containing the properties of the action.null
"trailingDelimiter"StringThe trailing mustache delimiter to use.null
"type"StringType name of the action.null

Examples

Example 1: Open internal browser

Show ExampleHide Example

The url parameter specifies the website that is to be opened.

{
"type": "openBrowser",
"params": {
"url": "https://fabrik19.de",
"external": false
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.

Example 2: Open external browser

Show ExampleHide Example

When opening an external browser, an alert can be used to inform the user that they are leaving the app.

{
"type": "openBrowser",
"params": {
"url": "https://mobilitysuite.com/",
"external": true,
"showAlert": true,
"alertTitle": "You are leaving the app.",
"alertMessage": "Are you sure you want to continue?"
}
}
The app showing the results of the sample code from Example 1.The app showing the results of the sample code from Example 1.