3 ms·
> Whether a user is in Safari, Safari View Controller, or another browser on iPhone or iPad, when they tap “Add to Home Screen” and create a web app, the cookie
by amadeuspagel 3y ago
> Whether a user is in Safari, Safari View Controller, or another browser on iPhone or iPad, when they tap “Add to Home Screen” and create a web app, the cookies are copied over, including the information about login state. This will only work if the authentication state is stored within cookies. No other kind of local storage is copied over.
> After a user adds a web app to the Home Screen or Dock, no other website data is shared, which is great for privacy.
So an offline-first app will not work. A user has to login if they want to see the same data when they open a web app from the home screen and when they open the same web app from the browser, and the data has to be synced in the cloud to make that work. Great for privacy.
- thepra 3y agoYep, as a web app developer I can't see what that has to do with privacy, it'll just slightly annoy the user into redoing the login within the new home shortcut(I don't use cookies for Auth)
- diebeforei485 3y agoI parsed that sentence as - the separate web app gets its own cookie jar, and it's pre-populated with whatever cookies existed for that website in the browser at the time the user created the separate web app, but from that point forward nothing is shared between browser and web app.
- amadeuspagel 3y agoYes, that's also how I parsed it.
- diebeforei485 3y agoBecause the browser login cookies would transfer to the web app, why would they have to log in again when they open the web app?
- jensimmons 3y agoCorrect.