[ https://issues.apache.org/jira/browse/CB-11476?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shazron Abdullah updated CB-11476: ---------------------------------- Description: Hello, I got the following line of code from an older issue: (code used in the html index file) {code} "// register these after deviceready event fires document.addEventListener("resign", onResign, false); document.addEventListener("active", onActive, false); function onResign() { console.log("on resign"); } function onActive() { console.log("on active"); }" {code} >From this issue’s link: >https://issues.apache.org/jira/browse/CB-115?jql=project%20%3D%20CB%20AND%20text%20~%20pause That code is being used to pause the app while the notification centre, or control centre are displayed – it is also used anytime there is a notification received on the screen (like a low battery indication or a phone call). The code works perfectly, except that it does not stop the audio while pausing the game. The audio keeps playing in background, while the game is paused. Also, now that I have introduced this code - my game behaves differently when I resume it after a while / before using the mentioned code I could leave the game in the background for hours and then return to it and the game was going to be exactly where I left it. Now with the new code, when I return to the game after minutes of being idle I see the game where I left it but for like 3 seconds only and then the game restarts. Is there a relation between the code used and this bug? I believe there is because that was not happening before using it, Many thanks in advance for your help, I am using an iPhone 6S as a test device and Intel XDK 3400 to build the game, Also: I have raised this issue to the INTEL team with no reply so far, https://software.intel.com/en-us/forums/intel-xdk/topic/643682 BR was: Hello, I got the following line of code from an older issue: (code used in the html index file) "// register these after deviceready event fires document.addEventListener("resign", onResign, false); document.addEventListener("active", onActive, false); function onResign() { console.log("on resign"); } function onActive() { console.log("on active"); }" >From this issue’s link: >https://issues.apache.org/jira/browse/CB-115?jql=project%20%3D%20CB%20AND%20text%20~%20pause That code is being used to pause the app while the notification centre, or control centre are displayed – it is also used anytime there is a notification received on the screen (like a low battery indication or a phone call). The code works perfectly, except that it does not stop the audio while pausing the game. The audio keeps playing in background, while the game is paused. Also, now that I have introduced this code - my game behaves differently when I resume it after a while / before using the mentioned code I could leave the game in the background for hours and then return to it and the game was going to be exactly where I left it. Now with the new code, when I return to the game after minutes of being idle I see the game where I left it but for like 3 seconds only and then the game restarts. Is there a relation between the code used and this bug? I believe there is because that was not happening before using it, Many thanks in advance for your help, I am using an iPhone 6S as a test device and Intel XDK 3400 to build the game, Also: I have raised this issue to the INTEL team with no reply so far, https://software.intel.com/en-us/forums/intel-xdk/topic/643682 BR > iOS app audio keeps playing in background while paused > ------------------------------------------------------ > > Key: CB-11476 > URL: https://issues.apache.org/jira/browse/CB-11476 > Project: Apache Cordova > Issue Type: Bug > Components: CLI, iOS > Affects Versions: 3.5.0 > Environment: Intel XDK, Cordova, iOS > Reporter: Jonathan Bencomo > Assignee: Shazron Abdullah > Labels: documentation > Original Estimate: 168h > Remaining Estimate: 168h > > Hello, > I got the following line of code from an older issue: > (code used in the html index file) > {code} > "// register these after deviceready event fires > document.addEventListener("resign", onResign, false); > document.addEventListener("active", onActive, false); > function onResign() { > console.log("on resign"); > } > function onActive() { > console.log("on active"); > }" > {code} > From this issue’s link: > https://issues.apache.org/jira/browse/CB-115?jql=project%20%3D%20CB%20AND%20text%20~%20pause > That code is being used to pause the app while the notification centre, or > control centre are displayed – it is also used anytime there is a > notification received on the screen (like a low battery indication or a phone > call). The code works perfectly, except that it does not stop the audio while > pausing the game. The audio keeps playing in background, while the game is > paused. > Also, now that I have introduced this code - my game behaves differently when > I resume it after a while / before using the mentioned code I could leave the > game in the background for hours and then return to it and the game was going > to be exactly where I left it. Now with the new code, when I return to the > game after minutes of being idle I see the game where I left it but for like > 3 seconds only and then the game restarts. Is there a relation between the > code used and this bug? I believe there is because that was not happening > before using it, > Many thanks in advance for your help, > I am using an iPhone 6S as a test device and Intel XDK 3400 to build the game, > Also: I have raised this issue to the INTEL team with no reply so far, > https://software.intel.com/en-us/forums/intel-xdk/topic/643682 > BR -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org