Network plugin, displaying state messages


#1

In my app, iam using network plugin to check whether network connection is avalaible or not. I do this in NetworkService, which i then inject into page, where i need it. In NetworkService, i subscribe to onConnect and onDisconnect methods, and every time they emit data, i display toastmessage with state of connection. Everything works fine. Only problem is, that toastmessage is displayed in moment i subscribe to methods. Is there any way to disable this? In other words, is there anyway, to ignore the first data emited from onConnect method(data emited when i subscribe).