Skip to main content
Participating Frequently
June 21, 2011
Answered

Sounds in my app make the background music to stop. iOS

  • June 21, 2011
  • 2 replies
  • 1698 views

Hello,

I have an application for iPad. I use short sounds in it for the buttons in my UI.

Unfortunately when I start my application the background music in the audio player stops immediately.

Do you have any idea how to solve this problem? I don't want to stop the user's audio player but in the same time I want my sounds.

Thank you in advance.

This topic has been closed for replies.
Correct answer vabhatia

With AIR 2.7 on iOS, there is no way to prevent the background audio from being silenced.

However the sound will be stopped only when you actually play any music in the AIR app and not at the launch time.

2 replies

Participating Frequently
August 10, 2011

AIR 3.0 Beta release notes:

iOS Background Audio Playback Support — Developers can  now write multitasking iOS applications that can play audio while in the  background, including music or voice chat from a conferencing  application.

has anyone actually implemented it?

Participating Frequently
August 10, 2011

Hi,

You don’t need a new API to use the feature. If you want to support background audio playback, you need to specify it the the iPhone section of application xml:


<key>UIBackgroundModes</key>
<array>
            <string>audio</string>
      </array>

Thanks,
Sanika

Participating Frequently
August 10, 2011

Thank you. I looked the tag in the AIR iOS settings page, but found it on the iOS developer library

AIR 3.0 release is doing fine for my needs, is there a way of getting the writting: Adobe AIR 3 beta build away?

Thanks again

vabhatiaCorrect answer
Adobe Employee
June 21, 2011

With AIR 2.7 on iOS, there is no way to prevent the background audio from being silenced.

However the sound will be stopped only when you actually play any music in the AIR app and not at the launch time.

Participating Frequently
June 21, 2011

Hello Varun Bhatia,

Thank you for your answer.