What’s new on iOS 12.2 for Progressive Web Apps

⚠️ Updated version of this article ⏩ firt.dev

In a nutshell

“Not secure”: the new flag when you browse HTTP websites

The new Lifecycle

New PWA Lifecycle on iOS 12.2 according to my testing. focus, blur and visibility events only happen when loaded over HTTPS.

PWA Browser

At the left, what happens today in iOS 12.1, the external URL opens in Safari with a small “back” button to your PWA in the status bar. At the right, two images on how it works on iOS 12.2. The URL opens in an In-App browser within the visual scope of your PWA
The Done button to return to the PWA only appears when you load another page after initial external site load.
If you install the appsco.pe PWA you can launch suggested PWAs within its boundaries but you can’t install them or transfer the navigation to Safari

Motion Sensors Disabled

Navigation Gestures

Back gesture in action in a standalone PWA

Other changes

Web Share works only after a user gesture and lets you share a link with a text on any native app, including native behaviors such as AirDrop or Copy.
With <input type=color> we can render a color picker. There is a bug here: on landscape mode the last row of colors is unselectable
With datalist, we can have an open input text box with suggestions on the keyboard and within a dropdown menu

Other Problems

PWAs on iOS 12.2 are still working under “Web” and “WebApp1” and not under Safari or SFViewController. The technical reason for this behavior is for another article :)
Apple is still lying to us saying that the Web App Manifest is “In Development” and not “Partially implemented” as it actually is
Weird keyboard problems using custom keyboards, such as: not updating layout after an orientation change or seeing no keys at all.
My PWA (without any launch image) using the Air Horner image for some reason
Ghost windows within the iOS multitask switcher

--

--

mobile+web developer, author, trainer, speaker | Check firt.dev for more articles and learning experiences | PWAs, Web Performance, JavaScript, Mobile Apps

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Maximiliano Firtman (firt.dev)

mobile+web developer, author, trainer, speaker | Check firt.dev for more articles and learning experiences | PWAs, Web Performance, JavaScript, Mobile Apps