r/programmingcirclejerk • • Dec 04 '18

Progressive Web Apps Explained

https://codecampanion.blogspot.com/2018/12/progressive-web-apps-pwa-explained-code.html
5 Upvotes

13 comments sorted by

View all comments

Show parent comments

4

u/[deleted] Dec 04 '18

PWA: your web page doesnt look like shit on mobile and you bookmark it to your home page

4

u/juustgowithit What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? Dec 04 '18

/uj You forgot the parts where website files can be stored locally, meaning no need to send them over every single visit, and there are possibilities for offline storage, notifications, etc. Plus, it’s not just pinned to homepage, it’s actually opened in a separate window (<-?) and not as a mobile browser tab. Most mobile apps today would work just as fine as pwas, and we wouldn’t have to deal with ‘coming soon to your platform’

1

u/[deleted] Dec 04 '18

<unjerk> I'm not convinced this solves anything beyond what a responsive web design and browser caching already solves. Most "apps" are just expensive ports of the company web site to a native mobile app because the hardcore android/iOS devs convinced their CIO that they are necessary and couldn't be entirely replaced by some well placed break points. I get some apps have a genuine need for native app functionality but if your app can be a "progressive web app" chances are it could just be a responsive web app in a browser. </unjerk>

1

u/[deleted] Dec 05 '18

/uj: It is just a responsive webpage in a browser, it just gets to work without internet connection and registers a worker in a separate thread to act like a "network proxy" that balances between cache and actual network (a.k.a. service worker).

The biggest advantage is that on Android, because Google pushes this thing, as apparently does MS, properly manifested website gets to open in "chromeless" webviewer windows and appear more native-like, and that's really all that PWA makes.

Everything else faux-native (ability to register intents, access camera, sensors, whatnots) is really already provided by Chrome to regular webapps through more-less standard Web APIs.

This also makes it a very unexpensive port of the company website to an app.

But, all browsers (not sure about Safari) intend to expand this to replace "app-like" browser extensions (and ChromeOS apps) with PWAs and it's looking very likely that through initiatives like Google's Carlo PWAs could attempt replacing Electron apps.