You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Remi Boardman (JIRA)" <ji...@apache.org> on 2017/02/03 12:26:51 UTC

[jira] [Updated] (CB-12422) Media does not play when the App is in the background on iOS

     [ https://issues.apache.org/jira/browse/CB-12422?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remi Boardman updated CB-12422:
-------------------------------
    Description: 
While trying to trigger a sound to play in the App (running in the background or screen locked) via a button press on an external bluetooth device, I receive the error:
??{"message":"","code":4}??

I've also tried creating a new blank app and wrapping the play method in a timeout so that it triggers a short while after I lock the screen or minimise the App. I do not hear a sound until I reopen the App and I don't get any errors in console this way.

I have set the ??playAudioWhenScreenIsLocked?? options to true, despite this being true by default.

  was:
While trying to trigger a sound to play in the App (running in the background or screen locked) via a button press on an external bluetooth device, I receive the error:
{"message":"","code":4}

I've also tried creating a new blank app and wrapping the play method in a timeout so that it triggers a short while after I lock the screen or minimise the App. I do not hear a sound until I reopen the App and I don't get any errors in console this way.

I have set the {playAudioWhenScreenIsLocked} options to true, despite this being true by default.


> Media does not play when the App is in the background on iOS
> ------------------------------------------------------------
>
>                 Key: CB-12422
>                 URL: https://issues.apache.org/jira/browse/CB-12422
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 3.5.0
>         Environment: iOS 8+
>            Reporter: Remi Boardman
>              Labels: background, background-audio, ios, media
>
> While trying to trigger a sound to play in the App (running in the background or screen locked) via a button press on an external bluetooth device, I receive the error:
> ??{"message":"","code":4}??
> I've also tried creating a new blank app and wrapping the play method in a timeout so that it triggers a short while after I lock the screen or minimise the App. I do not hear a sound until I reopen the App and I don't get any errors in console this way.
> I have set the ??playAudioWhenScreenIsLocked?? options to true, despite this being true by default.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org