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,