iOS verifiy connection internet splashscreen


#1

I’m checking the internet connection, so good on that side. But I need to send a message, so far the only thing that works is the common alert. Try installing plugins cordova dialogs and also ionicPopup and nothing. Neither work for me. I could help fix this. The message is very expressive and also the title is “index.html”.

.run(function($window, $rootScope) {
  $rootScope.online = navigator.onLine;
  $window.addEventListener("offline", function () {
    $rootScope.$apply(function() {
      $rootScope.online = false;
    });
  }, false);
  $window.addEventListener("online", function () {
    $rootScope.$apply(function() {
      $rootScope.online = true;
    });
  }, false);
});