I have an application running on shinyapps.io (https://vnijs.shinyapps.io/radiant-data). Works great. It also works as expected from Rstudio on macOS, Windows, Linux, and Rstudio Cloud. However, when I run it on a linux (Ubuntu 18.04) server with shiny-server (126.96.36.1993) or shiny-server pro (188.8.131.524) one specific feature does not work.
If you go to the app url shown above and too, for example, the View tab and select a single variable, the variable and tab selection should be correctly shown again after a browser refresh (i.e., app state is maintained). See screenshot below for an illustration. Again, this feature works as expected everywhere except shiny-server and shiny-server pro. Note: There are no browser or server errors shown that could provide a clue as to why this one feature does not work.
My question: Could someone perhaps provide more information on the exact setup (OS) and configuration (shiny-server.conf) used for the shinyapps.io server?
If anyone would like to replicate the issue you can run the app with docker and shiny-server on Ubuntu 18.04 using the command below:
docker run --rm -p 8080:8080 -p 8787:8787 vnijs/radiant
EDIT: I just noticed that when running from shiny server the app does still state a state-file with current settings that it is supposed to loaded back in during the refresh. However, for some reason this takes about 20sec with shiny-server and by that time the browser has already completed its refresh and ignores the file. Again, with the same data and settings this works great when run from Rstudio or on shinypapps.io. From Rstudio it even works with big-ish datasets of > 700MB