# Ionic Native - Network

**URL:** <https://forum.ionicframework.com/t/ionic-native-network/59990>\
**Category:** ionic-v3\
**Created:** [August 9, 2016, 9:16am UTC](https://forum.ionicframework.com/t/ionic-native-network/59990 "2016-08-09T09:16:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DigitalIQ](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/digitaliq/32/133787_2.png) [@DigitalIQ](https://forum.ionicframework.com/u/DigitalIQ)\
**Post date:** [August 9, 2016, 9:16am UTC](https://forum.ionicframework.com/t/ionic-native-network/59990/1 "2016-08-09T09:16:28Z")

</div>

I need a way to know when the app goes OffLine - I used Network from Ionic native and placed

```
Network.onDisconnect().subscribe(() => {
  // firing an alert here
});

```

in the constructor of app.ts

I think I am supposed to see the alert if I deliberately put my device to OffLine state !!

The alert does not shows up.

My intention is to get the alert fired with ‘`onDisconnect`’ event

Any help ??
