Search code examples
ipadios7web-sqlhomescreenhtml5-appcache

websql ios7 how to increase size?


as described here: http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review

I want to take advantage of the workaround described.

I tried:

var size = 4, db = openDatabase("db", "v1.1", "db", size * 1024 * 1024);

then I tried:

var size = 40, db = openDatabase("db", "v1.1", "db", size * 1024 * 1024);

And this, I've tried over thousand times the last 24 hours.

Sometimes a prompt appears: "increase up to 5MB?" .. but never one with "increase up to 10 or 25 or 50 …………"

Some time at the beginning of this, it worked! … Crazy. It really worked. But I wasn't sure about how I came to this point .. that's why I started to do it again (and again …) .. but it never worked again :( :(

… 23 hours later …

I have to show it to the client tomorrow, but it doesn't work. damn! That is why you are my last hope!

So If anybody has experience with websql-cache-limit on ios7 … please tell me what I'm doing wrong …

Thx!


Solution

  • I am editing the answer, as i didn't noticed you already saw that link. but, the same work around works for me. I am initially asking for 1 MB of space and then it works properly.

    var db=openDatabase('PermissionDatabase', '1.0', 'PermissionDB', 1 * 1024 * 1024);
    

    As per your answer, it worked initially, try resetting safari to delete all the previous permissions granted and then try again.