"Falling back on PROMPT mode since _cordovaNative is missing" error in older Android SDK versions

Theja picture Theja · Jan 2, 2013 · Viewed 7.1k times · Source

I am Developing an Android Application using Cordova-2.2.0, Android sdk I'm using is 4.1 and my application working Fine.

when I tried to test this Application on Android 2.2 and 2.3.3 I'm getting some log indicating like below and and my application page is not opening.

LOG is:

01-02 15:42:08.166: D/CordovaLog(486): Falling back on PROMPT mode since _cordovaNative is missing.
01-02 15:42:08.166: D/CordovaLog(486): file:///android_asset/www/js/ext/cordova-2.2.0.js: Line 1032 : Falling back on PROMPT mode since _cordovaNative is missing.
01-02 15:42:08.166: I/Web Console(486): Falling back on PROMPT mode since _cordovaNative is missing. at file:///android_asset/www/js/ext/cordova-2.2.0.js:1032

I don't know why it is appearing and how to solve it.

Answer

Simon MacDonald picture Simon MacDonald · Jan 2, 2013

There is nothing to fix. When the PhoneGap framework detects that you are running on a version of Android that does not support the regular way of passing information between the Java and JavaScript code it reverts back to the safer PROMPT mode.