cordova-plugin-background-mode
cordova-plugin-background-mode copied to clipboard
Apple reject my app due to Audio, AirPlay and Picture in Picture
I don't know if this is related to this plugin but Apple rejected my app with this message:
your app declares support for audio in the UIBackgroundModes key in your Info.plist but still 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.
I am actually playing sounds using html play method after receiving events from Socket.io
Should I remain this button checked in order to keep play those sounds in background, or should I uncheck this and the HTML playing sound in background will continue to work? Does this plugin is what lead for this button to be checked?
Here is a screenshot from the Xcode:
You can file an appeal, citing Technical Q&A 1668. The link below to a person who did this 6 years ago. He got his app approved a week later.
https://stackoverflow.com/questions/15980481/my-app-has-been-rejected-because-of-uibackgroundmodes
Let us know how it goes.
Actually I didn't understand the answer in the thread you sent. Anyway Apple contacted me via phone and told me that I need to play a continues audio media, like music, records and speach etc.
I was having the same issue, even though I was only submitting an update to an app that's been in the store for ages already with the same configuration every time. I suspect this time I just got a reviewer who was more thorough than all those who came before...
@Taxi4you I found a solution in using the Cordova after_prepare
build hook with a custom script to edit the array, inspired by this comment over here. Hope that helps. (: