+

Search Tips   |   Advanced Search

Settings page to change the server URL

With IBM MobileFirst Platform Foundation, create a settings page to change the URL of the MobileFirst Server.

With IBM MobileFirst Platform Foundation, create a settings page that allows the following changes:

  1. Directs the application to connect to a different MobileFirst Server by changing the <protocolca>://host:<port>/<contextRoot> values.

  2. Loads web resources that belong to a different application or version of the application.

This technique works only if the different MobileFirst Server already exists and these resources or applications are already deployed. This feature is meant only for use in the development environment and not in production.

The settings page is available for the following environments: Android, iPhone, and iPad.

By default, the settings page is disabled with the include attribute of <worklightSettings> set as false in the relevant environment element of application-descriptor.xml.

To activate the settings page for the supported environments, change the include attribute of <worklightSettings> to true. For example:

<iphone version="1.0" bundleId="com.mycompany.myapp">
    <worklightSettings include="true"/>
    <security>
    ...
    </security>
</iphone>


Parent topic: Develop user interface of hybrid applications