![]() public class MainActivity extends CordovaActivity implements WLInitWebFrameworkListener The WLInitWebFrameworkListener receives notification when the MobileFirst framework is initialized. The MainActivity.java file creates the initial MainActivity class extending the CordovaActivity class. Implementing WLInitWebFrameworkListener and creating the WL object A custom attribute android:name="" to the application element (see below).An activity called MFPLoadUrlActivity to allow proper MobileFirst initialization in case the cordova-plugin-crosswalk-webview has been installed.Adding .WL API calls to perform the MobileFirst initialization.The application native code instrumentation consists of: The bootstrap sequence must be completed before the Cordova application loads the application's main html file.Īdding the cordova-plugin-mfp plug-in to a Cordova application instruments the application's AndroidManifest.xml file and the MainActivity file (which extends CordovaActivity) native code to perform the MobileFirst initialization. ![]() The MobileFirst Cordova plug-in, cordova-plugin-mfp, has native asynchronous bootstrap sequence. In Android Studio, you can review the start-up process of the Cordova app for Android with MobileFirst. Popular packages to do so are:Īfter adding the MobileFirst Cordova SDK to a Cordova application, the MobileFirst set of API methods is now available for use.įor a complete list of available API methods, see the API Reference.
0 Comments
Leave a Reply. |