You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2012/11/15 00:48:11 UTC
[jira] [Resolved] (CB-1846) Offline event doesn't work
[ https://issues.apache.org/jira/browse/CB-1846?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Joe Bowser resolved CB-1846.
----------------------------
Resolution: Cannot Reproduce
Tested on Nexus 7 as well with Android 4.2. Offline event does work, but it's firing too many events instead of not firing this event.
> Offline event doesn't work
> --------------------------
>
> Key: CB-1846
> URL: https://issues.apache.org/jira/browse/CB-1846
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 2.2.0
> Environment: Samsung Galaxy S2 and Google Nexus 7
> Reporter: Remzi Cavdar
> Assignee: Joe Bowser
> Fix For: 2.2.0
>
>
> The offline event doesn't work and I had said this before release, but you guys wanted to release PhoneGap 2.2.0
> This is my code:
> document.addEventListener("deviceready", onDeviceReady, false);
> function onDeviceReady() {
> document.addEventListener("offline", function() {
> alert("Er is geen internet verbinding!\nSchakel Wifi of 3G in");
> }, false);
> }
> /* English: alert("No internet connection!\nPlease turn on Wifi or 3G"); */
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira