views:

2083

answers:

2

I'm wondering what's the limit of localstorage HTML 5 on iPhone? I read that it was like 5 Mb, but I'm surprised is so little. Any ideas?

+10  A: 

"The current default on iPhone is 5.0 MB. If your database grows beyond this limit, the user will automatically be asked to allow or deny the size increase. If he allows the increase, the database size limit will be upped to 10.MB"

Source: http://building-iphone-apps.labs.oreilly.com/ch05.html#ch05%5Fid35933104 Scroll down to "Note"

Raptrex
thanks! and do you know if after 10 MB it asks again for 15 MB?
fesja
No im not sure, try it out? :P
Raptrex
+4  A: 

Mobile Safari on the iPhone and iPad will hold 5MB before throwing a QUOTA_EXCEEDED_ERR when using localStorage. If you're using HTML5 SQL, the user will be prompted at 5MB intervals to increase the storage limit.

Desktop Safari v4 does not have a limit, afaik, on localStorage. Safari v5, however, limits the site to 5MB before throwing a QUOTA_EXCEEDED_ERR, exhibiting the same behavior as the mobile version.

SKFox