Method for opening UX in a PhoneGap or Static HTML application
Normally, this component is opened by making an Ajax callback to the server. In a mobile PhoneGap application, or a static HTML application, the device might not have a connection to the server and so making an Ajax callback is not possible. In this case you can render a pre-computed version of the target UX component.
When you build a PhoneGap application you specify the name of the UX component that is the 'start-up' component. This is the UX that is loaded when the user taps on the application icon on the device home screen. Since the start-up component is physically part of the PhoneGap app, the application can be launched regardless of whether the mobile device has a connection or not.
A common design pattern is for this start up component to call child UX components. These child UX components can either be embedded into the start-up component (for example on a Panel Card that is not initially visible) or displayed in a popup window. Child components are loaded by making an Ajax callback to the server.
However, if you do not have a connection, you will not be able to make the callback to load the child component.
In the image below, the Method for opening UX in a PhoneGap or Static HTML application for an embedded UX is shown in the Optimizations (PhoneGap/Static HTML) section.
The options for this property are:
- Ajax callback
If the mobile device has a connection, an Ajax callback is made, but if there is no connection, the precomputed child component is loaded.
The primary benefit of the precomputed method is speed. No callback is necessary, so the child UX will load very quickly.
Applies only to UX components