Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 5.1 and Safari Mobile restriction

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.

like image 532
Jon Lennart Aasenden Avatar asked Apr 03 '12 14:04

Jon Lennart Aasenden


People also ask

How do I get rid of Safari restrictions on iPhone?

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.

Why is my Safari not in mobile mode?

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.

Can iOS 5.1 1 be upgraded?

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.

How do I change Safari permissions on iPhone?

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.


2 Answers

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

like image 96
itinance Avatar answered Oct 03 '22 22:10

itinance


I've had no issues working with localstorage and iOS 5.1

It seems to be okay for me, using PhoneGap.

like image 40
user1284329 Avatar answered Oct 04 '22 00:10

user1284329