My application was rejected for 'UIBackgroundModes = {"audio",}'

I think I jumped the gun a little bit. Sorry about that. Had some time finally to investigate more and its not so clear cut.

So skipping _ UIBackgroundModes = {“audio”} _ still enables background music from other apps for me.

@CyberCatfish

have you tried putting this 

[lua]require(‘audio’)  

if audio.supportsSessionProperty then  

    audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)

end  [/lua]

At the very top of main.lua? I did a quick test without the buildSettings UIBackgroundModes and it works.

Let me be extremely clear about this.  

[lua]

if audio.supportsSessionProperty then  

    audio.setSessionProperty(audio.MixMode, audio.AmbientMixMode)

end

[/lua]

 

is an experimental feature that an engineer added several years ago to see what it could do.  He needed people to try it, so its existence leaked. It’s not supported.  We have no intentions on working on this in the future.  We can’t make the same features available for Android.  If you choose to use this and Apple does something to break it, it breaks.  If there are bugs, there are bugs.  I understand this is a nice-to-have feature and if you are more than welcome to vote for this feature at the feedback site here:  http://feedback.coronalabs.com/forums/188732-corona-sdk-feature-requests-feedback/suggestions/5416670-allow-external-music-audio-to-keep-playing-in-back

 

If there is enough interest in this (and it’s not a fixed number of votes as difficulty, cross platform functionality and value have to factor in), then we might do something.

 

Background tasks

 

Background tasks like “audio”, “location” and such are not supported by Corona Labs.  The way we have Lua implemented is tied to the view.  It has to be on screen for.  “audio” is known to work but it doesn’t send information back to Corona like the GPS would.  But it’s still not something we support.  Use at your own risk.  We will not be adding support for this.

 

In this case Apple seems to be requiring you to actually do audio things (like play a podcast) while your app is backgrounded to approve apps that use this mode. 

Thank you, @jonjonsson;

I seem able to settle a problem by your advice.

The insertion location of the cord you pointed out seems to have been a problem.

I mounted a relevant code the next of screen setting.

This seems to have obstructed problem solving.

By-talk…

I learned lua for the first time in corona in an early stage.

I liked these language and environment terribly.

I bought it immediately, developed an application and also participated in a Japanese group aggressively.

But I gave up using it before, And I moved to the other environment.

I’m returning and am trying the environment once again.

Conversation here just keeps me from leaving.

I’d like to say thanks to the person who participates here.