ionicPopup before splashscreen?

I need to alert the user whether or no internet on your device. I evaluated the connection I have no problem, the problem is in the alert. If I do

alert('No connection);

I have problems as it leaves the file name “html”, you can do this? Install ngDialogs and does not work.

I still have to do this in my app and was thinking of doing it like this: wire up the Cordova events for checking the connection. If it fails (no connection) then redirect to a new view which has a nice icon/message and a retry button. The only way to get off the page is to get the connection back and redirect to the main page. I checked how Facebook and apple and a couple of big players handle no connections and it does vary…