[
https://issues.apache.org/jira/browse/CB-7868?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14208302#comment-14208302
]
Boris Fersing commented on CB-7868:
-----------------------------------
OK,
1. I built the app using the vanilla cordova.js and I tried to launch it on one
of my 2.3.7 devices => the app didn't load properly
2. I applied the patch provided by [~agrieve], rebuilt the app and tried it
again on the same 2.3.7 device. The app loaded properly this time
There is also something I didn't notice the first time: Without the patch, I
get an error in the logcat output:
bq. D/CordovaLog( 3770): file:///android_asset/www/cordova.js: Line 512 :
Uncaught TypeError: Cannot set property connection of #<a Navigator> which has
only a getter
And I'm not getting that error anymore with the patch.
> Cordova [email protected] is broken for some Android versions (Javascript)
> ----------------------------------------------------------------------
>
> Key: CB-7868
> URL: https://issues.apache.org/jira/browse/CB-7868
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android, CordovaJS
> Affects Versions: 4.0.0
> Environment: Android >= 2.3.6 && <= 4.0.3
> Reporter: Boris Fersing
>
> Cordova 3.6.4 breaks the compatibility with some versions of Android. The app
> won't load
> I've been able to reproduce the bug on my 2.3.6 and 2.3.7 devices, and
> according to some bug reports I found, this might also affect other Android
> versions <= 4.0.3 but I did not have the opportunity to test those platforms.
> The bug has been introduced in this commit:
> https://github.com/apache/cordova-android/commit/025ca36d3ad0e2acb5c496442a661e3759b30af3
> And the culprit is the Object.defineProperty method that is broken on the
> platforms I mentioned above. (see https://github.com/cujojs/poly/issues/29 )
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]