Forums - iOS Background Mode

2 posts / 0 new
Last post
iOS Background Mode
paul.ledger
Join Date: 7 May 15
Posts: 1
Posted: Mon, 2015-07-13 10:29

Hi

I'm using the sample project as a basis to get me started and I wanted to know what I need to do to support background mode. I've got all the requirements set, but the music seems to stop half way through the second track that is being played.

Do I need any code in my AppDelegate to server up the music. How do I keep the connection open.

 

  • Up0
  • Down0
daniel.tai Moderator
Join Date: 19 Oct 15
Location: San Jose
Posts: 32
Posted: Wed, 2015-10-28 14:24

Hi Paul,

I am sorry for late response, I just joined as Moderator.

iOS suspends the app if there is no specific requirements met, such as Background Modes of Audio.  App does not suspend if you are playing audio in the background on device media player.  

https://github.com/marcop/MMPDeepSleepPreventer

This is an old open source library you can reference to keep app alive.

Hope this helps.

Thanks

Daniel

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.