buzzn / display-app

https://display.buzzn.io
0 stars 0 forks source link

Reload app if url contains groupId. #38

Closed scsirdx closed 7 years ago

scsirdx commented 7 years ago

One of the use cases for kiosk app: smart tv in a communal area of the building. For this use case kiosk app should be reloaded on daily basis to load the freshest version of a kiosk app. Simplest solution: spawn a saga/timer which will reload the page each 24hrs.

mkristian commented 7 years ago

what about adding the meta-tag in the page for reloading ?

mkristian commented 7 years ago

<meta http-equiv="refresh" content="5">

scsirdx commented 7 years ago

It's one of the ways to do it. +++ it's a standard (but W3C is against it) --- it's harder to control it. For now we only need to reload the page if groupId is the part of an URL. So in the other case i need to remove this meta from page.

But since the 2nd use case is for developers only we can ignore control part and include refresh by default. So if someone will load kiosk with group selector, after auto-refresh s/he will get a start/empty page.

scsirdx commented 7 years ago

I think i can use React Helmet to add/remove refresh meta based on presence of groupId in the URL.