I asked this in the discussion group and got no answer yet. I couldn't find the origin in sources either.
Is it possible to change the notification after disconnecting? I mean this thing here:

This is essentially the first thing the user will see when returning to the app after a while of inactivity. Particularly so on mobile devices where the browser could not maintain connection when screen is turned off.
tl;dr: I want to make this message 1) readable by people who don't know English (translation), and 2) a bit more friendly (custom HTML, perhaps. Pictures of cats. Anything other than a "this isn't working" screen.).
It's not currently customizable but that is something we should do. It would actually be a change to the server software (Shiny Server, Connect, and ShinyApps.io).
Well then should I submit a feature request in Shiny Server repo? Is this feature under consideration?
This would be very helpful.
For instance when restarting shiny-server, i.e. systemctl restart shiny-server all apps crash and user is presented with this message, for a short while I would like to add something like "maintenance occurring in the background, please ..." to the message.
Also agree this would be hugely helpful. Any updates or workarounds we can use in the meantime? Just want to show the user something a bit informative with a message on what to do next.
@tcash21 an alternative is to use the shiny:disconnected state, the below may require some extra tinkering. I recommend to use JQuery to toggle the visibility of a modal for example, say $("#modalIdentifier").toggle().
$(document).on('shiny:disconnected', function(event) {
// use JavaScript code here to show a customized pop-up
// ```$("#modalIdentifier").toggle()```
});
For anyone who sees this in the future, I created a little package called shinydisconnect that gives you more control over the the disconnect message. You can change the text, colours, and other parameters.
See shinydisconnect package.
Examples:


Awesome, thanks so much Dean!
On Mon, Jun 8, 2020 at 2:40 PM Dean Attali notifications@github.com wrote:
For anyone who sees this in the future, I created a little package that
gives you more control over the the disconnect message. You can change the
text, colours, and other parameters. See shinydisconnect package
https://github.com/daattali/shinydisconnect. Example:[image: image]
https://user-images.githubusercontent.com/952340/83962495-e8dd3680-a86b-11ea-84db-60f823789024.png—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/rstudio/shiny/issues/1828#issuecomment-640802420, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAHSA3GBP54E3W6PBZJSUATRVUWANANCNFSM4DYJNPNQ
.
Most helpful comment
Also agree this would be hugely helpful. Any updates or workarounds we can use in the meantime? Just want to show the user something a bit informative with a message on what to do next.