Add network verification

The app doesn't try to get or update the data if the phone is not
online.
This commit is contained in:
dario-cfpt
2020-03-10 10:41:46 +01:00
parent 5336ae83d8
commit bf22d8afc2
4 changed files with 75 additions and 40 deletions

View File

@ -16,7 +16,8 @@
"cordova-android": "^8.1.0",
"cordova-browser": "^6.0.0",
"cordova-ios": "^5.1.1",
"cordova-plugin-device": "^2.0.3"
"cordova-plugin-device": "^2.0.3",
"cordova-plugin-network-information": "^2.0.2"
},
"devDependencies": {
"cordova-plugin-whitelist": "^1.3.4"
@ -24,7 +25,8 @@
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {}
"cordova-plugin-device": {},
"cordova-plugin-network-information": {}
},
"platforms": [
"android",