cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shazron Abdullah (JIRA)" <>
Subject [jira] [Updated] (CB-11476) iOS app audio keeps playing in background while paused
Date Mon, 27 Jun 2016 19:59:52 GMT


Shazron Abdullah updated CB-11476:
    Component/s:     (was: CLI)

> iOS app audio keeps playing in background while paused
> ------------------------------------------------------
>                 Key: CB-11476
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: 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:
> 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
> 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, 
> BR

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message