Closed scsirdx closed 7 years ago
what about adding the meta-tag in the page for reloading ?
<meta http-equiv="refresh" content="5">
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.
I think i can use React Helmet to add/remove refresh meta based on presence of groupId in the URL.
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.