From within a Quick Brick mobile app (this is not available for TV apps) a Webview Screen can be launched as a screen type.
Scenarios to use this might be
- Add web based content to your app such as additional video content, articles, editorial etc .
- Construct a settings page to display various links to external URLs such as
- An accounts page
- A FAQ page
- Launch an e-mail client for a help desk
- T&C page
- Launch a dialler from a telephone number or and e-mail client from a lin
However, be aware that just using any existing webpage may cause issues due to that page
- Being poorly laid out, not being optimised for mobile views
- Containing embedded HTML5 players. These cannot be used a a substitute for a mobile player plugin and their behaviour within the app is not predictable.
The Applicaster Webview Screen (QB) plugin allows webscreens to be launched and navigated within the app, wtih a dedicated web nav bar to provide navigation through viewing history.
Webview is only utilized on links prefixed with http(s). Any other link types like; tel, mailto, app are opened by React Native openURL method, which opens them using the native OS.
If the Webview Screen (QB) plugin is not installed it opens all links using the React Native's openURL.
To use any schemes not prefixed by http(s) you will need to specify which ones are supported in the URL Schemes entry in the GENERAL app settings page in Zapp.
Add the plugin Webview Screen (QB) to your app before building the app in Zapp.
Add a Webview Screen Type
Add a screen to your app of type = Webview Screen (QB) and name it in UI Builder as you wish e.g. “New Webscreen”
Add this screen to your side menu or bottom tabs just like any other screen so it appears in the app navigation menu.
Configure the Webview screen
The following styling parameters are available
Data Source and General
Normal data source types such as manual, JSON etc. can be used to provide the URL but in most cases simply enter a URL directly in the General: URL field.
You can select to
- Show the webscreen full screen (will sit over the existing Top App Nav Bar).
- If you are using a Side Menu structure for your app then this will no longer be accessible when the webscreen is open
- If you are using Bottom Tabs as an app menu structure then Bottom Tabs will also be hidden when this full screen option is enabled
- Show or hide the normal Top App Nav Bar
- If this option is enabled and you are using a Side Menu structure for your app then this will no longer be accessible when the webscreen is open
- If you are using Bottom Tabs as an app menu structure then Bottom Tabs will still be displayed
- Show or hide the dedicated Web Nav Bar (with back, forwards, close, URL title etc.)
- When this option is enabled you can also choose to display a floating close button to enable you to exit the webscreen view and return to the app.
The Reload and Share button are also optional to display
Select the desired orientation for the Webscreen view from
- Landscape left, right, or using sensor
- All but upside down
- Portrait upside down
- All orientations
- Play Media within the web page fullscreen when selected
- Prevent inline videos from going fullscreen
- Auto play media within the webpage
Styles and labels
Configure the color of the webscreen background
Style the webscreen Nav Bar
Loading bar and assets
This displays under the web Nav Bar whilst a web page is loading.
Style the loading text and loading bar color and the color of the buttons in the navbar.
Page title and Drop down menu
Style the text in the webpage title (URL) and the optional drop down menu for reload and share.
Regarding orientation, the setting here will determine how the screen view launches. Be careful with landscape view on iOS as unlike Android there is no native back control to get back to your app from the webview screen. Use landscape on iOS only if you are launching the web view as a linked screen from another screen. Then the nav-bar back button will display.
Create a settings page
Add a screen to your app of type = general and name it as you wish e.g. Settings
Add this (Settings) screen and link to it in your side menu just like any other screen so it appears in the side menu
Add components to your Settings screen such as a List
Connect the component in the usual way as per any other type of content to
A feed containing the URLs for your links
A Power Cell for the styling of the component
In the following example we have a feed containing various URLs that will create the following screen (List component has been used with Power Cell 2, no image)