cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ugljesa Erceg (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CB-10766) resume and pause events not firing in Windows / Windows Phone 8.1 and 10
Date Thu, 03 Mar 2016 08:50:18 GMT
Ugljesa Erceg created CB-10766:
----------------------------------

             Summary: resume and pause events not firing in Windows / Windows Phone 8.1 and
10
                 Key: CB-10766
                 URL: https://issues.apache.org/jira/browse/CB-10766
             Project: Apache Cordova
          Issue Type: Bug
          Components: Windows
         Environment: Windows 10, Visual Studio 2015
            Reporter: Ugljesa Erceg
            Priority: Critical


I have generated Cordova app and added windows platform to it. I am using Visual Studio 2015
to open the project and app runs just fine. For me it is very important to subscribe to certain
Cordova events. Among others: deviceready, resume and pause. I subscribe to deviceready like
this in index.js:

document.addEventListener('deviceready', this.onDeviceReady, false);

And I get this event fired by Cordova and received when running the app on Windows Phone 8.1,
Windows Phone (with Windows 10) and Windows 10 (desktop).

After 'deviceready' event is fired, I am subscribing to 'resume' and 'pause' events. I tried
with single and double quotes (it doesn't look like it should make any difference):

document.addEventListener('resume', onResume, false);
document.addEventListener('pause', onPause, false);

But these events are not getting fired when I bring my app to background/foreground. I was
testing while debugging or if app is built in release mode. No way that I can trigger any
of these methods (onResume or onPause). Only way I say onPause getting triggered is when I
debug app in Visual Studio and once I hit Stop button (to terminate debugging session), in
that moment onPause gets triggered.

Is this known bug or "normal" behaviour?



--
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