How to prevent a shiny app from being grayed out?

前端 未结 1 1175
暖寄归人
暖寄归人 2021-01-15 13:09

we have a shiny app hosted in Heroku. After 55 secs of user inactivity, the app will be grayed out. This is applicable for Chrome and Safari. Edge is working fine. Heroku ha

相关标签:
1条回答
  • 2021-01-15 14:01

    After 55 secs of user inactivity, the app will be grayed out.

    I had a similar problem, but the context was different (this was due to proxy settings and I didn't use Heroku) so I don't know whether the solution I used is an option for you (I post it here because my reply is too long for a comment).

    I simply included these lines:

      autoInvalidate <- reactiveTimer(10000)
      observe({
        autoInvalidate()
        cat(".")
      })
    

    In this way a dot is printed in the console by every passage of 10 secs and my app didn't gray out anymore (though this is not really a "user activity").

    0 讨论(0)
提交回复
热议问题