cordova - Size limit for Cache Manifest with Phonegap on Android -


i'm developing single page web application. i'll post on appstore , play store phonegap. run app offline, use html5 cache manifest : final size around 10mb.

when test app on google chrome, loads normally. :)
after that, created apk phonegap test application on nexus 4.
unfortunately realized cache size limited 5mb. reduced weight of cache 5mb, cache loads correctly ! :)

i update cache, run application , error...
after tests, if cache size less 2.5mb loading , updating cache works.

i'd know if it's possible increase size limit of cache manifest phonegap?

thanks in advance,

matthieu

it's possible. have extend app.java following lines.

//version 7+ //method available since api level 7  if(android.os.build.version.sdk_int >= 7) {     //set custom cache size (20 mb), default seems to small (5 mb)     //this deprecated sdk 18 seems still needed     super.appview.getsettings().setappcachemaxsize(1024*1024*20); } 

we had error 10 on sql transaction updates , patch fixed setting limit 20 mb.


Comments

Popular posts from this blog

matlab - Deleting rows with specific rules -

jquery - How would i go about shortening this code? And to cancel the previous click on click of new section? -