Converting a MobileFirst Hybrid application to a Cordova application

IBM MobileFirst Platform Foundation v7.1 introduces support for creating Cordova applications using the MobileFirst Command Line Interface (CLI).
In this type of application, the MobileFirst SDK is packaged into a Cordova plug-in and is served as such along-side other core Cordova plug-ins and 3rd party Cordova plug-ins.

Read more about how to use the MobileFirst CLI and create Cordova applications in the following tutorials:

By now I am sure several light bulbs have popped up above your head, and you're thinking about integrating various Cordova plug-ins into your Hybrid application, allowing you to enhance and modularize your application using Cordova plug-ins and hooks. This was never an easy task to accomplish in past time, made much easier now.

Note though that in order to accomplish this you must convert your existing Hybrid application to a Cordova application.
In the following video I am demonstrating how to accomplish this, using a simple MobileFirst Hybrid application.

Note: Currently only the iOS and Android platforms are supported.

And voila, a new Cordova application is born.
As mentioned, this was a simple application taken and converted; more complex applications might need additional work based on their specific flow, but for the most part and most apps this should do.

You can also find written instructions in the following user documentation topic: Converting existing MobileFirst hybrid app into a Cordova app.

Happy converting!

Last modified on February 11, 2020