+

Search Tips   |   Advanced Search

Client property file for Android

The wlclient.properties file defines the properties that the native app for Android requires to use the MobileFirst native API for Android.

Define these properties before we use the file in the native app for Android.

The following table lists the properties of the wlclient.properties file, their descriptions, and possible examples for their values.

Property Description Example values
wlServerProtocol The communication protocol with the MobileFirst Server. http or https
wlServerHost The host name of the MobileFirst Server. localhost
wlServerPort The port of the MobileFirst Server. If we leave this value blank, the default port is used. If the wlServerProtocol property value is https, we must leave this value blank. 10080
wlServerContext The server context. /

If we use MPF Developer Edition, we must set the value of this property to the name of the project.

wlAppId The application identifier, as defined in application-descriptor.xml. myApp
wlAppVersion The application version, as defined in application-descriptor.xml. 1.0
wlEnvironment This property defines the MobileFirst environment. Its value must be Androidnative. Do not modify it. Androidnative
GCMSenderID This property defines the GCM sender identifier that use for push notifications. By default, this property is commented out.
languagePreferences This property defines a list of preferred languages, separated by comma, to be used by MPF to display system messages. en, fr, de, es


Parent topic: Develop native applications for Android