javascript - cache manifest update error over mobile network connection on Iphone standalone web app -


i'm creating web app asp.net . want app available offline cache manifest , on full screen(standalone) when saved home screen when used on smartphones. use code below update cache when there updated cache manifest available.

window.applicationcache.addeventlistener('updateready', function (e) {         var r = confirm("a new version available");         if (r == true) {             window.applicationcache.swapcache();             window.location.reload(true);         }     }, false); 

the problem , when first open homescreen app on iphone works fine , update works perfect. when close app , open again if use mobile networks(2g, 3g, lte) , update doesn't work @ , until turn on wi-fi.

i red somewhere problem mobile networks occur errors in javascript. didn't manage solve problem .


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -