Plugin not getting into subscription

Hello, I am using the Network plugin and its onConnect() method but it’s never getting into the Subscription’s code when I get network:

This is my code, pretty simple:

this.network.onConnect().subscribe(() => {
      console.log("MANOLETE2")
      this.hayRed = true;
      this.events.publish("preconditionSet");
});

I also tried with do() instead of subscribe() but it doesn’t work too.

Why is this?

Thanks.

Ok I reinstalled the plugin and it works now, idk why I wasn’t getting any error or something, the plugin was already installed tho