Exit (close) app when device disconnected!

Major drawback of both methods is that you will have to continuously check for internet connection.
Here the following extension does not need that:

Note: it may not work on Android Q and above.

1 Like