Given the differences in application architecture, this is not something that is going to have a "one-size-fits-all" type solution that is going to work for everyone.
app_offline.html for web applications is truly a "sledgehammer" approach. The app is down, yes it is graceful but it is a 100% hard stop.
A primitive way of doing this within your application could be to have a service call that you make on a regular basis for "Is online" or similar. If it returns false, force quit your current form and show a splashpage.
But this is really going to depend on architecture.