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.