Minimal files and config for a PWA

github.com

119 points by rcarmo 5 hours ago


afavour - 5 hours ago

I’ve been pleasantly surprised by how much is possible with an iOS PWA these days. It certainly doesn’t cover all bases but it would cover a lot… if only they’d make it easier to actually install one. With iOS 26 they’ve put it yet another tap deep!

It's often argued that Apple doesn't make PWA installs obvious because they want to preserve the sanctity of the web or something along those lines but I'd say that argument is invalidated by the “smart banners” for installing an App Store app that you can set via meta tag:

https://developer.apple.com/documentation/webkit/promoting-a...

In my experience they're far more intrusive than a PWA install banner!

alex_suzuki - 4 hours ago

Interesting that it‘s possible to do it with a single HTML file, the icons and manifest being dynamically generated in JS and set as data URLs. I wonder if that works reliably.

It‘s in the same repo: https://github.com/chr15m/minimal-pwa/blob/main/single-file-...

giancarlostoro - 3 hours ago

I've done this before, its a lot of fun, you learn a lot about the browser. Especially caching. If you ever suspect caching issues for a bug / issue, open up Chrome Dev Tools, go to the "Application" tab, then "Storage" if you click the Clear site data button, it will wipe all cache, then right click on the refresh button, and "Empty cache and hard reset" if you do both of these (though one's probably enough) you will start over with nothing cached. Cache becomes very tricky when building a PWA.

I don't know if its been fixed since, but I really needed to tell if I was offline, only way was to make requests, if they failed assume offline, keep retrying till online to sync data to backend.

butz - an hour ago

I wonder how long will PWAs will be viable option for sideloading own apps without notarization and developer account?

thedumbname - 3 hours ago

How to do a minimal cache busting? That is what stops me from "minimal setups"

pcdoodle - 4 hours ago

Fantastic minimal example. For those wondering what you can do with PWAs, check out https://whatpwacando.today/