I’m using the Network plugin of Ionic Native but it doesn’t fire events when I connect / disconnect my wifi connection in order to test if it’s working. I have the following code:
I’ve imported it inside the app.module.ts file and also inside home.ts (where is that snippet of code is from). Also, I have loaded it inside the constructor with private network: Network.
One thing you could do is to remove and re-add whatever platform you are using, and watch to make sure it is listed as being added during that process.
Yes, I have, but it doesn’t log “event_connected” or “event_disconnected” as it should because of the previous code I have posted. Which output do you want? Cause there’re infinite lines of code.