cordova-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CB-11638?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15401144#comment-15401144
] 

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: https://issues.apache.org/jira/browse/CB-11638
>             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
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message