Setting up an alternative host for mobile apps
Configure a mobile app to connect to a specific alternative host name and port instead of the default host name and port of the instance that you use to build your app.
By default, Pega Platform builds mobile apps with the server URL address that results from the context of the App Studio or Dev Studio session that is open in your browser. An example of a scenario that requires a change to that default behavior is when your development instance is only accessible from an internal company network, while the user-facing part of the system is on the public network. Alternatively, there are separate systems for development and production.Ensure that you import the following components from the instance that you use to build the app, to the one that you want to use as the alternative host:
- The whole of the Pega application, with unchanged application alias
- The mobile channel instance
- The associated OAuth 2.0 client registrations
- The authentication service that you select in the mobile channel
Additionally, ensure that the following authentication services are enabled in the instance that you want to use as the alternative host:
- The authentication service that you select in the mobile channel
- The Mobile authentication service, available in out-of-the-box in Pega Platform
- Open your mobile channel:
- In the header of Dev Studio, click the name of the application, and then click Channels and interfaces.
- In the Current channel interfaces section, click the tile that represents a mobile channel for your app.
- On the mobile channel page, on the Configuration tab, click the Hosting category.
- In the Hosting section, select the Override default host check box.
- In the Alternative host field, enter the host name that you want
to use.
For example: yourcompany.com
- In the Port field, enter the port for the alternative host
URL.
For example: 8080
- Click Save.
Previous topic Uploading an icon for an application package