I am developing Ionic 3 application for both Android and iOS. I am using ionic-native/network plugin. This plugin only provides the onDisconnect() and onConnect() hook. So, using this plugin i won’t know that the device has internet connection while opening the application for the first time.
this.navigator is undefined because you never assign anything to it, like I said in my original comment.
You wrote this line of code right?
navigator: any
So you show me where you assign a value to that.
The ionic native plugin that you say “only provides onDisconnect() and onConnect()” also very clearly has a connection type variable that you can use to determine the connection type, it will be one of unknown, ethernet, wifi, 2g, 3g, 4g, cellular, none. That’s written right in the docs. https://ionicframework.com/docs/native/network/#advanced