Once you are done building the mobile application, you can package the application targeting some common mobile platforms. ColdFusion builder packaged applications can access the native capabilities of the mobile platform. When you are building the applications, you will be writing only CFML code and not any device-specific native code.
Ideally, you will be using ColdFusion Builder for building the mobile application and ColdFusion Server for translating the ColdFusion code in your application to corresponding HTML/JavaScript code that can be packaged and installed on the device. ColdFusion builder gets this translation done through ColdFusion Server seamlessly with a few easy configuration settings. ColdFusion Builder helps in creating platform-specific installers (.apk and .ipa) by invoking the Cordova build service. However, you do not need to package the application targeting individual platforms if you are not using any hardware or device-specific functionalities.
See Types of mobile applications for all the supported types while building ColdFusion-based mobile applications. Information available in this chapter is only applicable for Type 1 and Type 3 deployments.
The ColdFusion builder currently supports packaging applications for the following mobile platforms:
After creating your mobile application in ColdFusion Builder, you can generate a platform-specific package that can be installed on the mobile device (iOS and Android). ColdFusion Builder sends the ColdFusion (.cfm) files to the ColdFusion Server, which converts the .cfm files to .html and .js files.
The following sections describe the global configurations required to prepare ColdFusion Builder for creating platform-specific mobile applications.
The ColdFusion Builder supports creating platform-specific builds for Android and iOS platforms. In order to package the mobile applications for these platforms, you need to configure the ColdFusion Builder to sign the applications with an appropriate developer/self-signed certificate. In the case of Android, providing the certificate details is optional as you can create an Android Application Package (APK) file for testing on your devices without signing it. However, testing the mobile application on iOS devices require you to have a developer certificate and a provisioning profile file.
Ensure that you follow the steps provided in this article to get started:
For iOS development
For Android development
Once you have created and stored the required certificates, go to Windows > Preferences > ColdFusion > Cordova and provide the required details as shown in the following screen:
| Note: If any of the iOS key details are not specified, packaging will not work. Ensure that you specify ALL the details. |
The following sections describe the project-specific configurations required to prepare ColdFusion Builder for creating platform-specific mobile applications.
After you have configured the mobile project with Cordova build service settings, you can invoke the Cordova build service, by right-clicking the mobile project and by clicking Cordova Build > Generate Debug Build.
Note that you need to enable your Android device to install non-market applications. See the troubleshooting section on installing non-market applications.
When you have an IPA file stored locally, you can use Apple iTunes software to install the application on your iOS device.
To install the test application on your device, perform the following tasks:
See this video to understand how IPA files can be installed on devices using Apple iTunes. Ensure that the test device is provisioned before installing the IPA file.
To build a hybrid application, develop a ColdFusion Mobile application in ColdFusion Builder and deploy the application on ColdFusion Server. You need to include the /CFIDE/ cfclient / useragent . cfm file that will allow your application to detect the mobile platform and will correspondingly load the platform-specific (Android or iOS) Cordova JavaScript file at runtime.
When the hybrid application is invoked, the content gets loaded from the ColdFusion Server. Also, the platform-specific Cordova-*.js file gets served by the ColdFusion Server depending on the mobile platform.
Sign in to your account