Phonegap événements en ligne/hors connexion ne fonctionne pas

J'écris application avec phonegap(cordoue) 3.0.0 et d'événements "en ligne" et "hors ligne" ne fonctionne pas. Quand j'ai essayé de l'événement "reprendre", cet événement a été OK. J'utilise XCode 4.5 et IOS.

C'est mon principal fichier javascript de phonegap projet:

var app = {

    initialize: function() {
        this.bindEvents();
    },
    //Bind Event Listeners
    //
    //Bind any events that are required on startup. Common events are:
    //'load', 'deviceready', 'offline', and 'online'.
    bindEvents: function() {
        document.addEventListener('deviceready', this.onDeviceReady, false);
        document.addEventListener('online', this.onDeviceOnline, false);
        document.addEventListener('resume', this.onDeviceResume, false);
    },

    onDeviceReady: function() {
        app.receivedEvent('deviceready');
    },

    onDeviceOnline: function() {
        app.receivedEvent('deviceonline');
    },

    onDeviceResume: function() {
        app.receivedEvent('deviceresume');
    },

    receivedEvent: function(id) {
        var parentElement = document.getElementById(id);
        var listeningElement = parentElement.querySelector('.listening');
        var receivedElement = parentElement.querySelector('.received');

        listeningElement.setAttribute('style', 'display:none;');
        receivedElement.setAttribute('style', 'display:block;');

        console.log('Received Event: ' + id);
    }
};

Merci pour les conseils

InformationsquelleAutor user2374693 | 2013-08-10