Adding mobile deployment entry
You can update the EGL deployment descriptor with details that are needed to deploy mobile applications.
Before you begin
Notice:
You must configure Rich UI
Deployment before making changes to mobile deployment.
Procedure
- Open the EGL Deployment Descriptor editor by double-clicking an EGL deployment descriptor. For details about creating the file, see Creating an EGL deployment descriptor.
- Click the Mobile Deployment tab. The Mobile Deployment page is displayed.
- In the Cordova Deployment section, select Enable Cordova Deploy. It will deploy the mobile project to a Cordova project as a hybrid mobile project. Otherwise, the mobile project will be deployed to a web project.
- Identify the target Cordova project. Select the existing
Cordova project in the workspace or click New to
create a new Cordova project.For details about creating Cordova project, refer to Creating mobile applications.Notice:You need to specify certain plug-ins for certain EGL Cordova library. For more information, see the following table.
Table 1. EGL Cordova features and plug-ins EGL Cordova features Cordova plug-ins AccelerometerLib Cordova-plugin-device-motion Battery Events Cordova-plugin-battery-status Network Events/CordovaLib.getConnection Cordova-plugin-network-information CameraLib Cordova-plugin-camera CompassLib Cordova-plugin-device-orientation ContactsLib/Contact Cordova-plugin-contacts CordovaLib.getDevice/Device Cordova-plugin-device CordovaLib.vibrate/CordovaLib.vibrateWithPattern/CordovaLib.cancelVibrate Cordova-plugin-vibration GeolocationLib Cordova-plugin-geolocation Media Cordova-plugin-file, Cordova-plugin-media - Identify the main handler to be shown as the index page of the mobile application. Select from the selected handlers in Rich UI deployment.
- Identify the default locale for the main handler.
-
If the current mobile project has service definition, you can identify the URL for deployed
web project containing EGL services within the current mobile project. The format is
{HTTP/HTTPS} :-//{IP/Domain}:Port/Context-Path/yourAppName. Here is the
example.
http://www.IBM.com:8001/IBD/Mobile/myCordovaAppThe service URL here only refers to the EGL developed service defined in the current project. It won't affect the access of third-party service or the access of EGL services defined in other projects. You are still able to use tools such as the RUI service binding to configure those services. - The RUI Handler of the mobile projects can be deployed to a web project, a Cordova project, or both. Select the check box beside the Enable Web Deploy attribute to insert the check mark. The RUI handlers will be deployed to a web project and Cordova project. Otherwise, it will be deployed to a Cordova project only.