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:
@ -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",
|
||||
|
Reference in New Issue
Block a user