Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cordova plugin add cordova-plugin-network-information
- if(navigator.connection.type == "none"){
- $ionicLoading.hide()
- $ionicPopup.alert({
- title: "Internet Disconnected",
- content: "There is no internet connection. Please check the connection and try again."
- })
- .then(function(result) {
- ionic.Platform.exitApp();
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement