You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 14, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: readme.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,19 @@ To inject scripts into the hosted web content:
147
147
The following [wiki article](https://github.com/manifoldjs/ManifoldJS/wiki/Using-Cordova-Plugins-in-Hosted-Web-Apps) provides additional information about these features.
148
148
149
149
### Offline Feature
150
-
The plugin implements a basic offline feature that will show an offline page whenever network connectivity is lost. By default, the page shows a suitable message alerting the user about the loss of connectivity. To customize the offline experience, a page named **offline.html** can be placed in the **www** folder of the application and it will be used instead.
150
+
The plugin implements an offline feature that will show an offline page whenever network connectivity is lost.
151
+
152
+
The feature is enabled by default, but can be disabled with the following property in the manifest.json file.
153
+
154
+
```
155
+
{
156
+
...
157
+
"mjs_offline_feature": false
158
+
...
159
+
}
160
+
```
161
+
162
+
By default, the page shows a suitable message informing the user about the loss of connectivity. To customize the offline experience, a page named **offline.html** can be placed in the **www** folder of the application and it will be used instead.
151
163
152
164
1. To test the offline feature, interrupt the network connection to show the offline page and reconnect it to hide it.
logger.error('Failed to read manifest at \''+manifestPath+'\'.');
591
-
returntask.reject(err);
590
+
logger.warn('Failed to read manifest at \''+manifestPath+'\'. Proceeding to point config.xml to sample url of https://www.npmjs.com/package/cordova-plugin-hostedwebapp.');
0 commit comments