[ 
https://issues.apache.org/jira/browse/CB-12714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16049467#comment-16049467
 ] 

Shazron Abdullah commented on CB-12714:
---------------------------------------

Ok it's possible:
1. Add the UIBackgroundModes "audio" to app's Info.plist
2. Setup the proper AudioSession options

This is achieved by this plugin: 
https://github.com/AubreyHewes/cordova-background-audio

To test it:
{code}
cordova plugin add https://github.com/AubreyHewes/cordova-background-audio
{code}

Add these two lines to config.xml (replace existing <content> tag):
{code}
    <content src="https://521dimensions.com/open-source/amplitudejs"; />
    <allow-navigation href="https://521dimensions.com"; />
{code}
... then deploy to device, play a song, press the Home button.

> Media - SUNSET
> --------------
>
>                 Key: CB-12714
>                 URL: https://issues.apache.org/jira/browse/CB-12714
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: cordova-plugin-media
>            Reporter: Shazron Abdullah
>
> See parent issue.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to