I think this is a good idea. Developers should not be able to store something on my computer indefinitely without my consent. This doesn't apply to applications users add to their home screen. This doesn't "destroy" the PWA ecosystem. Just makes a user's intention explicit when they save a PWA to their home screen, rather than continuing to use it within the browser. From the WebKit Blog ( https://webkit.org/blog/102…
Your browser is already caching a whole lot of stuff that you don't know about just by visiting a site. A little LocalStorage isn't going to hurt you. Cookies I get, but I don't know of any dark patterns with localstorage / the benefits are pretty great.
Private client-side-only PWAs are hard, but now Apple made them impossible
401–410 of 927 posts
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#402I really hope the outcry about this is big enough to get Apple / Webkit reconsider. With service workers and improvements in browsers/cpus "PWA"s (aka web apps) were just getting to the point where they could compete with native apps for a number of use cases. And they had much better privacy / security policies. This doesn't completely kill that, but it's a big setback.
> they had much better privacy / security policies Why is a PWA better from a privacy or security perspective than a native app?
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#403Sounds like the solution is to add the app to your home screen. I don't think its reasonable for a browser to let any site I ever interact with to store data on my device indefinitely
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#404Earlier quoted context omitted.
If the cookie is set by http headers, yes. If it's set with client side js, though, it's capped at 7 days (since ITP 2.1).
What if you have a cookie set by http and try to update it with js? Will it self-destruct now?
So in order to have a long-lived cookie, you essentially need to treat them as read-only client side, and push any and all update/write logic to the server such that it'll return a set-cookie header with any changes you require.
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#405Earlier quoted context omitted.
> they had much better privacy / security policies Why is a PWA better from a privacy or security perspective than a native app?
Security: it runs in the browser's sandbox. Native apps by contrast generally have (or can request) full access to your system.
This doesn't accurately describe iOS apps, the pertinent comparison with respect to the article.
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#406On one hand, I don't like this direction from Apple because it's meant to boost Apple's proprietary app store business -- which directly competes with the open web -- but masquerades as a privacy issue. On the other hand, this direction keeps web devs honest: local storage, service worker, cookies and other script-writable areas are meant to be temporary.
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#407I really hope the outcry about this is big enough to get Apple / Webkit reconsider. With service workers and improvements in browsers/cpus "PWA"s (aka web apps) were just getting to the point where they could compete with native apps for a number of use cases. And they had much better privacy / security policies. This doesn't completely kill that, but it's a big setback.
> they had much better privacy / security policies Why is a PWA better from a privacy or security perspective than a native app?
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#408Earlier quoted context omitted.
> they had much better privacy / security policies Why is a PWA better from a privacy or security perspective than a native app?
Security: it runs in the browser's sandbox. Native apps by contrast generally have (or can request) full access to your system.
Re: Private client-side-only PWAs are hard, but now Apple made them impossible
#409Earlier quoted context omitted.
It is not fine if you're creating apps that don't have a backend.
Honest question - If you're creating an app like that, is a PWA really the right way to go? Aren't there other options available (such as creating a native app with a SQLite database)?
For example, I (used to) maintain a tool that is essentially a save file viewer, but must store some data for decryption of said files. It's an Electron app, but could work as a normal website for the most part as well. I got a prototype of that up and it stores the required data in local storage. I don't want to maintain and host a backend for it, and I'm not too hot on paying Apple's developer fee for it, either.
You may say it's a fringe use case, and it probably is, but it's very much legitimate. I don't know why they couldn't have made storage for longer than 7 days with an extra permission to be requested.