Android ICS with jQuery Mobile1.0 compatibility issues

We encounter a very strange "Unknown chrome error: -6" in our HTML5 application on Android ICS (4.0). I feel that resources (JS / CSS, in particular JQueryMobile) are not loading properly for the first time, because I do not see this problem when I got to the application the next time. Does anyone know what is going on? Please let me know if anyone has seen this behavior before.

The application works fine on 2.1, 2.2 and others less than 4.0

I also see this problem with our application. we changed the API level to 14 so that we can implement shouldInterceptRequest() , and I see this in my log:

 01-12 08:29:04.025: D/onPageStarted(17181): file:///android_asset/web/html/main.html 01-12 08:29:04.853: D/shouldInterceptRequest(17181): file:///android_asset/web/js/lib/jquery-1.7.js?_=1326374944864 01-12 08:29:04.861: D/onLoadResource(17181): file:///android_asset/web/js/lib/jquery-1.7.js?_=1326374944864 01-12 08:29:04.861: D/chromium(17181): Unknown chromium error: -6 01-12 08:29:04.861: D/shouldInterceptRequest(17181): file:///android_asset/web/js/lib/jquery.mobile-1.0.js?_=1326374944873 01-12 08:29:04.861: D/onLoadResource(17181): file:///android_asset/web/js/lib/jquery.mobile-1.0.js?_=1326374944873 01-12 08:29:04.868: D/chromium(17181): Unknown chromium error: -6 01-12 08:29:04.931: D/onPageFinished(17181): file:///android_asset/web/html/main.html 01-12 08:30:17.462: D/chromium(17119): Unknown chromium error: -6 01-12 08:30:17.462: D/chromium(17119): Unknown chromium error: -6 
+4
source share
2 answers

It looks like you have the same problem as mine. It turns out that in the browser for ICS and, presumably, Honeycomb, there is a rather big error based on the test. In logcat, I get the following error: Unknown chrome error: -6.

Try removing hints or anchor transitions, and this will hopefully solve the problem (although most problems will depend on your functionality). There is an error report for him here if someone else has the same problems.

+3
source

Just tried ICS and my application engine, which relies heavily on WebView and runs flawlessly on Gingerbread, seems to suffer from this problem among many others ....

I also get a chrome error: -6 and is definitely related to loading from / android _assets /

In addition, pages opened in an iframe (in android resources), which are iframes, opened by the main page (also in Android assets), apparently cause resolution problems (e.g. iframe can not acess parent) ...

I just with ICS, like 3 hours, can not give more understanding, but I will definitely follow this topic.

0
source

Source: https://habr.com/ru/post/1390710/


All Articles