Page 1 of 1

Wrong Binary .ipa build is setting support for audio in the UIBackgroundModes key

Posted: Sun Mar 14, 2021 12:53 pm
by Image3D

iOS .ipa Build is wrongly setting the support for audio in the UIBackgroundModes key in your Info.plist, even without having this option being selected.

Apple has rejected our application :

From Apple:
" Guideline 2.5.4 - Performance - Software Requirements

Your app declares support for audio in the UIBackgroundModes key in your Info.plist but did not include features that require persistent audio.

Next Steps

The audio key is intended for use by apps that provide audible content to the user while in the background, such as music player or streaming audio apps. Please revise your app to provide audible content to the user while the app is in the background or remove the "audio" setting from the UIBackgroundModes key."

Please advise.

Regards Joni


Re: Wrong Binary .ipa build is setting support for audio in the UIBackgroundModes key

Posted: Mon Mar 15, 2021 11:57 am
by Image3D

I checked the .ipa info.plist file and the UIBackgroundModes Keys are set, even I have not set it in the project( please see attached images).

Building .ipa in Xcode 12.2 makes the window.open(url, "_system") not to work properly ( please seee my other post ).

Please, we need a solution or a work around to solve the problem, since client is waiting for the App Release.

Regards Joni.


Re: Wrong Binary .ipa build is setting support for audio in the UIBackgroundModes key

Posted: Mon Mar 15, 2021 4:40 pm
by Serhii Kulibaba

Hello,

Do you have any custom Cordova plugin? They might set that key automatically. Please disable all of them and build the app again. Is the issue still there?


Re: Wrong Binary .ipa build is setting support for audio in the UIBackgroundModes key

Posted: Mon Mar 15, 2021 7:49 pm
by Image3D

Thanks for your fast repy. I will check the cordova plugins and let you know...


Re: Wrong Binary .ipa build is setting support for audio in the UIBackgroundModes key

Posted: Mon Mar 15, 2021 8:37 pm
by Image3D

Found that the UIBackgroundModes Keys are being set by the Cordova StreamingMedia Plugin, which plays video on iOS and Android in Native mode.

I will be checking with Apple how to proceed.

Please consider this issue solved.

Thanks for your tip.

Best Regards Joni


Re: Wrong Binary .ipa build is setting support for audio in the UIBackgroundModes key

Posted: Tue Mar 16, 2021 6:30 pm
by Serhii Kulibaba

Glad to hear things are sorted out now!