Discussion: What is the best way to get users to refresh a web app?
marcellothearcane

marcellothearcane @marcellothearcane

About: 🍄

Joined:
Sep 29, 2018

Discussion: What is the best way to get users to refresh a web app?

Publish Date: Sep 10 '19
3 5

I'm currently developing a Nuxt web app for our staff to use for processing orders.

At the moment, there are a lot of bugs being fixed or new features implemented.

The trouble is, the users generally keep the tab open for days on end, since they are using it constantly - and since it's Nuxt, they don't ever hard-refresh.

This means they don't get the bug fixes they asked for as soon as they have been deployed.

What is the simplest notification system for me to quickly post a 'Refresh this page to see the latest version' popup?

I'm using Nuxt, GraphQL, and Zeit deployment, so if it could trigger from a successful deploy on Zeit that would be awesome.

Comments 5 total

  • Sergio Daniel Xalambrí
    Sergio Daniel XalambríSep 10, 2019

    What Next does and probably Nuxt can do if it’s not default is create a BUILD_ID, if such ID changed when the user tried to access another page then it’s hard reloaded. Maybe you could do something similar?

  • Jason Ormes
    Jason OrmesSep 11, 2019

    Do something to cause their browser to crash...

  • Tobias SN
    Tobias SNSep 11, 2019

    Once every 5 minutes or something, the client should request the newest version number from the server. If it’s different from the one it’s currently running, it should show a popup in the corner telling the user that there’s a new version and that they should refresh.

  • Brett Mandler
    Brett MandlerSep 18, 2019

    You could create an event listener to trigger a popup when a service worker finds an update. Take a look at developers.google.com/web/fundamen...

Add comment