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:
- Using CLI to create, build, and manage MobileFirst project artifacts
- Integrating MobileFirst Platform Foundation SDK in Cordova Applications
- Cordova user documentation
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.
Inclusive terminology note: The Mobile First Platform team is making changes to support the IBM® initiative to replace racially biased and other discriminatory language in our code and content with more inclusive language. While IBM values the use of inclusive language, terms that are outside of IBM's direct influence are sometimes required for the sake of maintaining user understanding. As other industry leaders join IBM in embracing the use of inclusive language, IBM will continue to update the documentation to reflect those changes.