It seems Apple have (once again) added restrictions to Safari Mobile and javascript HTML5 development with the iOS 5.1 update. However, finding the facts about these changes is frustrating due to the level of gossip.
Some say only localstorage objects have been moved to the cache, while globalstorage and sessionstorage work as before (since larger sites use these, like facebook, to log in through partner websites).
Some also say that databases are still persistent, while others say that these are now also stored in the cache of the browser - and will thus be flushed whenever iOS feels like it.
Could someone please enlighten us with the facts? Preferably with source references if possible.
Prevent web contentGo to Settings and tap Screen Time. Tap Content & Privacy Restrictions and enter your Screen Time passcode. Tap Content Restrictions, then tap Web Content. Choose Unrestricted Access, Limit Adult Websites, or Allowed Websites.
Bring up the ᴀA menu, and then tap Website Settings. On the Website Settings sheet that shows up, turn off the switch next to Request Desktop Site and tap Done to apply your changes. Safari will automatically refresh the website and relaunch it in mobile mode.
Thanks, if you are using iPad1, you can't upgrade now, because iOS 5.1. 1 is the last and highest iOS version for this model.
In iOS, the user can open the Settings app, then choose Safari > Extensions in the General group. Then they can tap an extension to see which websites have been configured for the extension, and can change the permission status for a selected website to Ask, Allow, or Deny.
The broken localStorage for WebViews is documented, (see http://www.sencha.com/blog/html5-scorecard-the-new-ipad-and-ios-5-1/#date:15:00)
"In iOS 5.1, this data is no longer considered persistent and is treated as temporary or transitory data, so iOS can destroy it at any time, without warning, including during low memory scenarios."
For phonegap, there are fixes around this issue: http://community.phonegap.com/nitobi/topics/phonegapbuild_localstorage_on_ios_5_1
I've had no issues working with localstorage and iOS 5.1
It seems to be okay for me, using PhoneGap.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With