Cache web app pages, images, and static assets natively on device for complete offline functionality.
Enable complete offline page access with Offline Page Caching. Nativine embeds native URLScheme / ServiceWorker offline caching engines, storing HTML, CSS, JavaScript, and images locally so your web application runs seamlessly without active internet connections.
Maintaining app usability during network dropouts is essential. Nativine's Offline Page Caching plugin intercept web requests at the native network layer, serving cached assets instantly:
To inspect network connectivity state or trigger cache clearing in JavaScript, call nativine.offlineCache.getNetworkStatus():
// Check current network status
nativine.offlineCache.getNetworkStatus({
callback: 'onNetworkStatusChanged'
});
function onNetworkStatusChanged(status) {
console.log("Is Connected:", status.isConnected);
console.log("Connection Type:", status.connectionType); // wifi, cellular, none
}
// Clear offline cache storage
nativine.offlineCache.clearCache();
| Parameter | Type | Description |
|---|---|---|
callback | string | Required. JS callback receiving network status object (isConnected, connectionType). |
Nativine supports up to 2GB of native encrypted offline page storage per application on both iOS and Android.
Yes. The background caching engine checks for updated web headers (ETag / Cache-Control) to refresh cached assets silently.