Ionic Network Plugin is not workiing

Hello, I am trying to check the internet/network connection of the device using Network Plugin but it doesn’t seem to work. It didn’t even return any data or error messages on the console. Here is my code.

import { Network } from '@ionic-native/network';

  templateUrl: 'app.html'

export class MyApp {

  constructor(public platform: Platform,
    private splashScreen: SplashScreen,
    private statusBar: StatusBar
    public network: Network) {

  initializeApp() {
    this.platform.ready().then(() => {

  checkInternetConnection() { => {
      console.log('network was disconnected :-(');
    }, error => console.log(error)); => {
      console.log('network connected!');
      setTimeout(() => {
      }, 3000);
    }, error => console.log(error));

I hope someone can help me. Thank you in advance :slight_smile:

It is working now but it only triggers when I open the app then turn off the wifi but if the wifi was already turned off before I open the app it won’t work anymore. I don’t know how to trigger that after showing the splash screen.