Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap application throws error running Android ICS 4.0, but works fine on Android 2.3 and below

I have a problem with PhoneGap mobile app running on Android. I am currently using PhoneGap version 1.3.0. And it works perfectly on Android 2.3 and all the lower versions of Android. However, when I try to run it on Android 4.0 - Ice cream sandwich it throws this dialog error:

Application error - A network error occurred. (file:///android_asset/www/index.html#)

In the logcat there is not much relevant info, only this:

chromium - Unknown chromium error: -6

Anybody has any idea why my app works fine on all Android versions except the newest 4.0 ICS ? Thank you for any help in advance.

like image 218
Frodik Avatar asked Jan 26 '26 16:01

Frodik


1 Answers

IIRC there is a bug in the 3.X versions of Android and it is probably in the 4.0 version as well. Try removing the # from your URL and things should work for you.

like image 158
Simon MacDonald Avatar answered Jan 29 '26 04:01

Simon MacDonald



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!