onPhoneGapReady
Description
Fires when the component is running in a native shell that uses Cordova. Fires when the device is ready and Cordova is loaded.
Discussion
The onPhoneGapReady event fires after Cordova has been loaded and is ready for use. This event can be used to configure plugins or execute methods that require Cordova to be loaded. Examples include configuring the Status Bar plugin to use the iOS 6 styling or launching the Bar Code Scanner.
You can use Javascript Actions to run Action Javascript in addition to writing your own custom JavaScript.
Example
// Set the Status Bar to use iOS 6 Styling: StatusBar.overlaysWebView(false); StatusBar.styleDefault();
Limitations
Cordova Applications Only
See Also