Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

HTML5 localStorage space limit on iPad Safari

To clarify I'm referring to the key/value localStorage pairs, not Web SQL DB or IndexedDB.

Is it strictly a 5MB limit for the iPad, or is it true that it's unlimited but it will ask the user to allow/deny once you exceed 5MB?

I'm hoping to use localStorage to store a large amount of data and so is important that it's unlimited.

like image 980
Chris Avatar asked Oct 11 '22 03:10

Chris


1 Answers

Have a look at how the Financial Times web app deals with it:

http://apps.ft.com/ftwebapp/

On installation it detects the limit and then provides instructions for the user to manually increase their limit to 50MB using the Settings app.

If there was an easier/automatic way to do this, I'm sure they'd use it.

like image 138
Nick Lockwood Avatar answered Oct 13 '22 01:10

Nick Lockwood