PWA on iOS, Part 4: What Add to Home Screen Really Does
A user signs in to a site in Safari, decides to add it to the Home Screen, taps the new icon, and is greeted by the login form again. Authentication isn't the culprit: the icon has its own storage, and the boundary between it and Safari is drawn at the moment the site is installed as a PWA. That is what this fourth article is about: what iOS does between the tap on the Share button and the appearance of the icon, and why this is where the most expensive bugs are born. In the previous part, we established that every browser on the iPhone runs on the same WebKit engine. Now let's see how that engine handles installation. Installing a PWA on an iPhone doesn't download an .ipa, doesn't create a
…