Rejected by Apple for Background music function thingy.. help pls

After waiting a lengthy 10 days, Apple rejected my binary for this reason:

“Multitasking Apps may only use background services for their intended purposes: VoIP, audio playback, location, task completion, local notifications, etc.”

I was trying to make it so you could keep your music playing in BG while playing my game.

Decided to look up what people did and what worked, and came up with this bit of code (which seems to be the issue, sorry about the spacing I can fix that if it’s a big issue was a c/p):

function keepPlayingAudio() -- Set the audio mix mode to allow sounds from the app to mix with other sounds from the device if audio.supportsSessionProperty == true then print("supportsSessionProperty is true") audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode) end -- Store whether other audio is playing. It's important to do this once and store the result now, -- as referring to audio.OtherAudioIsPlaying later gives misleading results, since at that point -- the app itself may be playing audio isOtherAudioPlaying = false if audio.supportsSessionProperty == true then print("supportsSessionProperty is true") if not(audio.getSessionProperty(audio.OtherAudioIsPlaying) == 0) then --print("I think there is other Audio Playing") isOtherAudioPlaying = true end end end keepPlayingAudio()

This is what is in my build settings:

iphone = {

plist = {

            UIBackgroundModes = { “audio” }

 ***** the rest doesn’t matter ******

And this is what Apple said to do next:

2.16 Details

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 applications that provide audible content to the user while in the background, such as music player or streaming audio applications. 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 haven’t done anything yet, cause I’m not familiar with much of this- But I want to keep the background audio playing while my App is also playing.

How - what to do, any help greatly appreciated!

I just removed the " UIBackgroundModes = { “audio” } "  in the build settings and it seems to still play music in BG so I guess that’s the fix. Figures that simple 

I just removed the " UIBackgroundModes = { “audio” } "  in the build settings and it seems to still play music in BG so I guess that’s the fix. Figures that simple