From e31596f60eeb3d9a7d47844b3e0e45304530d30f Mon Sep 17 00:00:00 2001 From: Chris Brody Date: Mon, 12 Nov 2018 12:06:45 -0500 Subject: [PATCH] Remove obsolete check for JellyBean (GH-534) (#544) to work properly on Android Pie was introduced in dc0bfeb0c (CB-11828) Resolves #534 Co-authored-by: Co-authored-by: Christopher J. Brody --- cordova-js-src/exec.js | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/cordova-js-src/exec.js b/cordova-js-src/exec.js index f73d87a1..39e8c97e 100644 --- a/cordova-js-src/exec.js +++ b/cordova-js-src/exec.js @@ -109,17 +109,6 @@ function androidExec(success, fail, service, action, args) { } androidExec.init = function() { - //CB-11828 - //This failsafe checks the version of Android and if it's Jellybean, it switches it to - //using the Online Event bridge for communicating from Native to JS - // - //It's ugly, but it's necessary. - var check = navigator.userAgent.toLowerCase().match(/android\s[0-9].[0-9]/); - var version_code = check && check[0].match(/4.[0-3].*/); - if (version_code != null && nativeToJsBridgeMode == nativeToJsModes.EVAL_BRIDGE) { - nativeToJsBridgeMode = nativeToJsModes.ONLINE_EVENT; - } - bridgeSecret = +prompt('', 'gap_init:' + nativeToJsBridgeMode); channel.onNativeReady.fire(); };