cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Loriot (JIRA) <>
Subject [jira] [Commented] (CB-11638) Offline event not triggering
Date Sun, 31 Jul 2016 13:08:20 GMT


Nicolas Loriot commented on CB-11638:

I will try tomorrow on another device. 
I just call : document.addEventListener("offline", isOffline, false);
document.addEventListener("online", isOnline, false);
Right after the platform.ready(). 
My callbacks are simple console.log, but the isOffline is never reached when i turn airplane
mode. However when i turn it back off my isOnline function is reached. 
I'll keep you updated after trying it on another device. 

> Offline event not triggering
> ----------------------------
>                 Key: CB-11638
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Network Information
>    Affects Versions: 1.2.0
>         Environment: Android 6.0.1, Ionic 2
>            Reporter: Nicolas Loriot
> The online event is working but i can't get the offline event to fire after enabling
airplane mode.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message