@yashwanth493 you mean like below code/
if (this.network.type == 'none') {
let connectSubscription = this.network.onConnect().subscribe(() => {
console.log("Connected Chers");
this.navChild.pop();
this.toast.create({
message: 'Network Connected',
duration: 300
}).present();
});
connectSubscription.unsubscribe();
let disconnectSubscription = this.network.onDisconnect().subscribe(() => {
console.log("Connected Cry");
this.navChild.push(NetworkCheckPage);
this.toast.create({
message: 'Network Disconnected',
duration: 3000
}).present();
})
disconnectSubscription.unsubscribe();
}