質問

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!

役に立ちましたか?

解決

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.

他のヒント

Initial request database size has no meaning in iOS.

Workaround is, dump garbage data of your desire storage size in temp db. This should cause to request quota. Then you delete temp db, and create your db.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top