Skip to main content
Known Participant
December 11, 2014
Question

play an audio on background in IOS on standby

  • December 11, 2014
  • 1 reply
  • 334 views

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 has been closed for replies.

1 reply

Inspiring
December 12, 2014

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

Peter_T_RAuthor
Known Participant
December 12, 2014

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