Skip to main content
Known Participant
Dec 11, 2014 4:43 PM UTC
Question

play an audio on background in IOS on standby

Seems to be not possible for an Air app to play and audio file in background when iOS device is on STANDBY, I am trying a lot solutions without any luck.

Adobe air SDK version 15.0.0.356

Maybe some one know about a workaround or about the new SDK update because the app is not useful on IOS anymore.

This topic is closed to new replies. Start a new post to keep the conversation going.

2 replies

Inspiring
Dec 12, 2014 2:00 PM UTC

Hey,

    I using SDK 16.0.0.222 for a little player app for a client that successfully plays in the background and sleep.

You need the following in your AS3 code :

NativeApplication.nativeApplication.executeInBackground = true;

The this in your XML:

<key>UIBackgroundModes</key>

  <array>

  <string>audio</string>

  </array>

The only problem is there is slight "glitch" effect when going to the home screen or sleep. I am hoping someone has a work around for that.

Craig

Translate
Peter_T_RAuthor
Known Participant
Dec 12, 2014 2:21 PM UTC

Hi

Thanks for the information, I will try with the SDK beta 16, maybe adobe releases the production version soon in order to fix the glitches.

Regards,

Peter

Translate