Unlike $cordovaNetwork:online
, its counterpart $cordovaNetwork:offline
is not being caught when assigned an event handler.
I can see numerous discussions on other ways to detect when the app is offline via the window
and navigator
objects, but I’m specifically interested in anyone who had trouble with $cordovaNetwork:offline
. Regardless of whether I set up the event handler inside of $ionicPlatform.ready
or inside of a controller, catching the event when I disable the network connection (e.g. Airplane mode) does not seem to work for me.
Can anyone confirm this to be an issue?
Is there a workaround?
Thank you.