
The WebViewGold iOS App Template is quite smart when it comes to different ways to handle the offline/online status of app users. Three modes are available:
Option 1: Use a URL for accessing your web application (= store files online)
Option 2: Use a local HTML folder for accessing your web application (= store files within the app)
Option 3: Use an HTML folder if the user is offline, and use a remote URL if the user is online (= store files online + store backup/fallback files within the app)
Get the WebViewGold iOS App Template for Xcode here. In order to activate the fallback mode (option 3), just import your HTML/CSS/JavaScript files within Xcode, set uselocalhtmlfolder to false and set offlinelocalhtmlswitch to true.