开发者

Does the iPhone support cookies when a webpage is opened in fullscreen mode?

开发者 https://www.devze.com 2023-01-16 10:03 出处:网络
I can\'t find this information anywhere. Does the iPhone allow cookies to be stored when a webpage is op开发者_开发问答ened in full screen mode (by placing a link on the home screen)?I\'ve experienced

I can't find this information anywhere. Does the iPhone allow cookies to be stored when a webpage is op开发者_开发问答ened in full screen mode (by placing a link on the home screen)?


I've experienced the iPhone not storing cookies when using fullscreen mode (added to homescreen). Not sure why, it did work if I just ran it in Safari as usual.

Ended up using localStorage. It's actually less hassle to implement so no reason to not use it.

https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/Name-ValueStorage/Name-ValueStorage.html


I would imagine so - but you can also use localStorage too:

localStorage["key"] = "value"


The full-screen mode is still safari running with the UI hidden (if set so). So, there is no reason for cookies to be disabled in this mode.

http://developer.apple.com/library/ios/#DOCUMENTATION/UserExperience/Conceptual/MobileHIG/Characteristics/Characteristics.html

Safari on iOS supports cookies. Use of cookies can streamline user interaction with web content by saving the user’s context, preferences, and previously entered data.

...

Safari on iOS allows web apps to run in full-screen mode. Web apps that launch from a web clip icon on the user’s Home screen can hide the UI for Safari on iOS, so that they look more like native applications.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号