The application in shinyapps.io continues to run after closing the browser window.

Dear Community,

I have published one of my first apps on shinyapps.io. However, I noticed that when I close the browser window and check the app dashboard in shinyapps.io, it appears that it continues running and takes a while to close.

I have tried a solution that I have read in some post, specifically, to add to the server function:

  session$onSessionEnded(function() {
    stopApp()
  })

however, this doesn't work and the app still appears as running in the shinyappsio dashboard.

Has anyone faced the same problem and knew how to fix it? That is, to stop the app from running once the user closes the browser tab.

Thanks in advance,

1 Like

I experienced the same issue which is making the free-tier shinyapps.io unuseful. It basically doesn't do what it promises.

Hi,

The applications in shinyapps.io have a 15 minute idle timeout after all connections to the app have disconnected. Please see the Application life cycle documentation for more information.

-Kyle