IFS49F / poker

:spades: Vivid, registration-free, easy-to-use scrum poker. Aka Poker4Fun.

Home Page:https://poker4.fun

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add friendly warning/banner to user once there is new update for client

just4fun opened this issue · comments

commented

Basically there is no need to use service worker to serve assets since the poker is a simple project.

However, as a side project which is just for fun, I'm happy to embrace such new things.

Thanks to create-react-app, there is registerServiceWorker.js, and it's easy to know whether there is new update.

Once there is any change to data structure, I'd like to notice client user there is new update in addition to ensure our code is backward compatible like IFS49F/poker-server@60347c2.

Poker4Fun is a PWA. The motivation of using Service Worker in Poker4Fun is bringing native-like experience, which is the point of PWA. We want the app launch instantly without having to wait for the assets being downloaded. This is also vital for coping with the screwed up Internet connection in China.

If we are making a native app, I bet you'll agree that it's totally normal for the user to run an old version of the app. As we are building a PWA, we should think in the same way as native app developers. IMO, forcing the user to upgrade immediately is too intrusive for our UX standard, so we don't want to do that even if a breaking change is made on the server.

API versioning is much better way to deal with this problem. We progressively enhance the experience for new version users while keeping the access to old version until they're ready to upgrade.

commented

If we are making a native app, I bet you'll agree that it's totally normal for the user to run an old version of the app.

Yes I agree.

If we have API change or data structure change, we should make sure it's backward compatibility, then there is no need to ask them to upgrade manually.