Skip to main content
Known Participant
April 12, 2016
Question

Apple rejected the app because an existing audio support

  • April 12, 2016
  • 2 replies
  • 945 views

For more than a month I am trying to update my app but always got the same rejected message from apple review. " Your app declares support for audio in the UIBackgroundModes key in your Info.plist, but we were unable to play any audible content when the application was running in the background."


But my app isn't include audio support for background, on the Info.plist file isn't exist a single line declared audio or UIBackgroundModes.

How can be possible apple always find the declaration of audio in the UIBackgroundModes when isn't there, somebody can explain me?

This topic has been closed for replies.

2 replies

Peter_T_RAuthor
Known Participant
April 26, 2016

This is my full method to play the audio alert :

public static function playSoundFile(path:String):void{

  var soundChannel:SoundChannel;

  var urlRequest:URLRequest = new URLRequest(path);

  var sound : Sound = new Sound();

  sound.load(urlRequest);

  soundChannel = sound.play();

  soundChannel.addEventListener(Event.COMPLETE, function():void{

  sound.play();

  });

  }

Something is wrong ?

Inspiring
April 15, 2016

You're positive you don't have this in your app XML ?

<iPhone>

  <InfoAdditions>

  <![CDATA[

  <key>UIBackgroundModes</key>

  <array>

  <string>audio</string>

  </array>

  ]]>

  </InfoAdditions>

</iPhone>

I would try deleting your XML file and creating a new one to be sure.

Peter_T_RAuthor
Known Participant
April 26, 2016

No the app isn't include any reference to "UIBackgroundModes" .

The rare thing is I unzipped the app and check the Info.plist file and there is nothing related with background or audio.

<iPhone>

  <InfoAdditions><![CDATA[

      <key>UIStatusBarStyle</key>

            <string>UIStatusBarStyleBlackOpaque</string>

            <key>UIRequiresPersistentWiFi</key>

            <string>NO</string>

  <key>UIDeviceFamily</key>

  <array>

  <string>1</string>

  <string>2</string>

  </array>

    <key>UIApplicationExitsOnSuspend</key><false/>

  ]]></InfoAdditions>

I spoke with a apple representative and they says remove all audio support on the application in order to be accepted. I don't understand my app play sometimes a simple audio alert a beep and how is possible this is not allowed ?

Somebody can explain me if the audio support is allowed or not on a app?

This is how I play the sound : Utility.playSoundFile(Constants.SOUND_EXIT_PATH);

Regards,

Peter