News for hackers. Stuff that matters.
Re:I built a progressive web app and published it in three a... by judah on Monday April 16, 2018 @12:08PM (#16850010)
Why build an app and not just live on the web? I answered that in the article, 2nd paragraph. The answer is two-fold:

1. That's where users are. We've trained a generation of users to find apps in app stores.

2. Some mobile platforms (read: iOS) are hostile to web apps. For example, Apple doesn't let you play audio in the background on iOS. (Or rather, they suspend JS execution if the web app is in the background, or if the screen is off. Thus, you can play exactly a single MP3, then my media player app will stop playing music unless it's still in the fore, which is a show-stopper.) This is just one of dozens of issues with web audio in iOS Safari; I've documented more here[0].

Native apps have no such restriction. Thus, packaging my PWA as an app got around all these restrictions. Plus it lets me integrate with the OS, for example, by showing the currently-playing song name, artist, album, art, etc. on the lock screen.

[0]: http://debuggerdotbreak.judahgabriel.com/2016/12/13/its-almo...

Re:I built a progressive web app and published it in three a... by inferiorhuman on Monday April 16, 2018 @12:11PM (#16850045)
> Some mobile platforms (read: iOS) are hostile to web apps.

I'm OK with that. Web apps are clunkier and provide a worse experience. That Google makes this easier speaks to the sort of UX you get with Android.

Re:I built a progressive web app and published it in three a... by scardine on Monday April 16, 2018 @12:22PM (#16850173)
> I'm OK with that. Web apps are clunkier and provide a worse experience. That Google makes this easier speaks to the sort of UX you get with Android.

Chicken and eggs argument here: web apps are clunkier and provide a worse experience because they are not well supported by the OS or the OS does not provide better support for web apps because they provide a worse experience?

Hybrid app frameworks exist because phone operational systems lack proper support for web applications.

Re:I built a progressive web app and published it in three a... by altfredd on Monday April 16, 2018 @01:48PM (#16851072)
> web apps are clunkier and provide a worse experience because they are not well supported by the OS

No, they are clunkier and provide a worse experience, because most "web apps" are ported version of desktop bloatware, targeting devices, permanently plugged into wall-mounted electric outlet.

What are "web applications" anyway? Something, that requires permanent internet connectivity? Something with DOM APIs? Something with built-in Javascript interpreter? Something with CSS support? The defining qualities of "web" have absolutely nothing to do with mobile devices. If anything, "web" has bad supported for OS. This is why all hybrid frameworks are about exposing additional OS functionality to browser, not the other way around.

Just accept, that you are looking at wrong tool for the job.

Re:I built a progressive web app and published it in three a... by scardine on Wednesday April 25, 2018 @05:32PM (#16926396)
I will not debate whether "web apps" are ported version of desktop bloatware but I don't see why you can't write offline-first, mobile-first progressive web applications using Javascript and HTML (except Apple's lack of enthusiasm supporting anything outside their walled garden)
Re:I built a progressive web app and published it in three a... by judah on Monday April 16, 2018 @12:15PM (#16850079)
I understand lock downs for security or user experience (e.g. disallow sites to auto-play video, etc). But restricting web apps to the point they're actually broken? No, that really sucks. Shame on Apple.

And if we care about freedom and the opened web, we should not cheer on proprietary, closed platforms like app stores. We should want the opened web to win.

Re:I built a progressive web app and published it in three a... by inferiorhuman on Monday April 16, 2018 @03:34PM (#16851994)
> I understand lock downs for security or user experience (e.g. disallow sites to auto-play video, etc). But restricting web apps to the point they're actually broken? No, that really sucks. Shame on Apple.

Shame on developers for cargo culting web apps over to various mobile platforms. Even on desktop platforms, non-native apps stick out like a sore thumb and generally work poorly (e.g. Slack). Granted I'm okay with my apps not doing autoplay video regardless of whether or not they're native.

> And if we care about freedom and the opened web, we should not cheer on proprietary, closed platforms like app stores. We should want the opened web to win.

How about the freedom to be rid of phishing apps and spyware? The "opened web" is not an all or nothing idea, and promoting web "apps" over proper native apps isn't a win.

Re:I built a progressive web app and published it in three a... by kop316 on Monday April 16, 2018 @12:22PM (#16850172)
I am not. That reinforces a iOS/Android ecosystem lock in. I personally want to see web apps succeed so it would be easier to move off of those platforms. If that happens, then I would foresee that web apps get first rate treatment and won't be "clunkier"
Re:I built a progressive web app and published it in three a... by inferiorhuman on Monday April 16, 2018 @03:38PM (#16852029)
Web apps got "first rate" treatment with the original iPhone. Remember how that worked out?