cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-12422) Media does not play when the App is in the background on iOS
Date Tue, 14 Feb 2017 22:57:41 GMT


ASF GitHub Bot commented on CB-12422:

Github user jcesarmobile commented on the issue:
    "iOS doesn't allow background audio unless you enable it in the info.plist file" can be
rephrased to something like "To allow playback with the screen locked or background audio
you have to add audio to UIBackgroundModes in the info.plist file"
    And maybe adding a link to Apple doc about background modes might help. (

    No need to link a 3rd party plugin as there are a few and we shouldn't "promote" one above
the others, is up to the user how to write in the info.plist (manually or with a plugin),
and hopefully we will be able to do it soon from the config.xml without the need of a 3rd
party plugin.

> Media does not play when the App is in the background on iOS
> ------------------------------------------------------------
>                 Key: CB-12422
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin Media
>    Affects Versions: 3.5.0
>         Environment: iOS 8+
>            Reporter: Remi Boardman
>            Assignee: jcesarmobile
>            Priority: Minor
>              Labels: background, background-audio, easyfix, 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_ option to true, despite this being true
by default.

This message was sent by Atlassian JIRA

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

View raw message