News for hackers. Stuff that matters.
Re:The Shadow Inc. app that failed in Iowa last night by brlewis on Tuesday February 04, 2020 @08:47PM (#22243256)
Why is downloading a native app easier for Average Joe than clicking a link to a web app that's served with appropriate Cache-Control headers and uses localStorage?
Re:The Shadow Inc. app that failed in Iowa last night by freeone3000 on Wednesday February 05, 2020 @09:47AM (#22247050)
Cache-Control gets ignored when browser tabs are "paged out", especially on mobile. It's egregious on Mobile Safari, where effectively only two or three pages are "live" and the remainder have to be re-grabbed. No connection? No re-grab. The version fetched might be any version from any point in history, including your "does this work?" flight that you pushed (because of course you pushed one). There's also very little mechanism to tell ahead-of-time whether a network request will work - you'll have to essentially pre-flight all server communication, which is doable, but not easily accessible the way that a "save locally, upload in background once internet" would work as a native app.
Re:The Shadow Inc. app that failed in Iowa last night by brlewis on Wednesday February 05, 2020 @10:34AM (#22247608)
As an alternative to having them download a separate app, have them download a browser that supports the stale-if-error Cache-Control directive. It's fair to ask people doing serious work not to use Mobile Safari.

It's also fair to ask them to keep checking the native or web app to make sure the data was sent, so one doesn't have to rely on web workers staying alive in the background. Just save to localStorage, catch network errors and keep retrying.

Re:The Shadow Inc. app that failed in Iowa last night by numpad0 on Tuesday February 04, 2020 @09:31PM (#22243475)
How haven’t PWA disappoint you