For up-to-date product documentation, see the IBM MobileFirst Foundation Developer Center.
Cordova WebView
Once the native platform (iOS, Android or Windows) initializes the web framework, we can access MobileFirst functionality from the WebView with JavaScript.
We can use Cordova plug-ins or HTML 5 to create JavaScript API to call user-interface controls that are common to most environments, such as modal pop-up windows, loading screens, or tab bars.
From MobileFirst 8.0 we can integrate Crosswalk WebView with your Cordova MobileFirst app. See Crosswalk WebView (Android).
Whether you choose to integrate Crosswalk or use the default Cordova WebView a wide range of MobileFirst functionality is available using JavaScript. See Some initial WebView code for connecting to the server.
- Editing WebView (JavaScript) code
Editing the WebView resources is more convenient using an IDE that provides autocompletion for JavaScript.- Some initial WebView code for connecting to the server
Most of your Cordova app is developed using the web resources. After creating your Cordova app and adding the MobileFirst plug-in we can add MobileFirst functionality.- Crosswalk WebView (Android)
We can replace the default WebView in your MobileFirst Cordova app with Crosswalk.- WKWebView (iOS)
We can replace the default UIWebView in your MobileFirst hybrid iOS Cordova app with WKWebView.
Parent topic: Develop Cordova applications