Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please updated the documentation on iOS's local storage is a little unclear. #1363

Open
Ajay-jain11 opened this issue Oct 12, 2024 · 2 comments
Labels

Comments

@Ajay-jain11
Copy link

The updated documentation on iOS's local storage is a little unclear.

"iOS stores localStorage data in a location that may be cleaned out by the OS when space is required."

OS should never erase local storage—that is, webkit's responsibility—at least not during runtime.

Please see the details here
https://webkit.org/blog/10218/full-third-party-cookie-blocking-and-more/

@Ajay-jain11 Ajay-jain11 changed the title The updated documentation on iOS's local storage is a little unclear. Please updated the documentation on iOS's local storage is a little unclear. Oct 12, 2024
@breautek
Copy link
Contributor

I had a look at a plugin that I used to migrate local storage and the paths for the UIWebView the local storage was potentially stored in the caches folder, which was something that the OS will clear when it feels like it needs to reclaim disk space.

But it looks like WKWebview uses a non-cache folder so the docs might be representing what was accurate for UIWebView but maybe not as much for WKWebView.

OS should never erase local storage—that is, webkit's responsibility—at least not during runtime.

I believe the user can still request app data to be deleted, which will include the webview's local storage data.

Can you provide a link of what parts of the cordova documentation states that local storage can be cleared by the OS?

@Ajay-jain11
Copy link
Author

Here is the link https://cordova.apache.org/docs/en/12.x/cordova/storage/storage.html

@breautek breautek transferred this issue from apache/cordova Oct 18, 2024
@breautek breautek added the bug label Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants