Updated Branches: refs/heads/master 166a98fb0 -> 13840a8cd
CB-1879: Reverting to prompt because addJavascriptInterface is borked on Android 4.2, unable to expose methods due to annotations crashing Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/13840a8c Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/13840a8c Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/13840a8c Branch: refs/heads/master Commit: 13840a8cdfffe20130461fe3a26e93b2ac9b93fa Parents: 166a98f Author: Joe Bowser <[email protected]> Authored: Mon Nov 19 10:16:34 2012 -0800 Committer: Joe Bowser <[email protected]> Committed: Mon Nov 19 10:16:34 2012 -0800 ---------------------------------------------------------------------- lib/android/exec.js | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/13840a8c/lib/android/exec.js ---------------------------------------------------------------------- diff --git a/lib/android/exec.js b/lib/android/exec.js index 490633f..bbc66cc 100644 --- a/lib/android/exec.js +++ b/lib/android/exec.js @@ -65,8 +65,9 @@ var cordova = require('cordova'), function androidExec(success, fail, service, action, args) { // Set default bridge modes if they have not already been set. + // By default, we use the failsafe, since addJavascriptInterface breaks too often if (jsToNativeBridgeMode === undefined) { - androidExec.setJsToNativeBridgeMode(jsToNativeModes.JS_OBJECT); + androidExec.setJsToNativeBridgeMode(jsToNativeModes.PROMPT); } var callbackId = service + cordova.callbackId++,
