admin管理员组文章数量:1345072
I have multiple web views of the same domain that share the same local storage, as expected.
One of them though, is loading a .webarchive file for use when offline.
The web archive is of the same domain, and is loaded using the same base URL.
For some reason, in most cases, the local storage is not shared with this web view when loading the web archive, although if I make that same web view load the actual web page it does share local storage.
I say in most cases, because for some users it works as expected, but for a significant portion of users it isn't sharing.
I think that the main difference between working and not is iOS version.
iOS 17 seems to be able to share the local storage but iOS 18 does not.
I can't find anything related in the release notes of iOS 18 versions.
There is nothing in the documentation for load(_:mimeType:characterEncodingName:baseURL:), or the header file, that explains anything specific about local storage and webarchive loading.
Does anyone know for sure how local storage is handled when a webarchive is loaded into a web view, and did something change with iOS 18 in regards to this?
本文标签: iosWhen loading a webarchive in WKWebView does it handle local storage differentlyStack Overflow
版权声明:本文标题:ios - When loading a .webarchive in WKWebView does it handle local storage differently? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743807177a2542392.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论