[build.settings]
UIApplicationExitsOnSuspend = false,
UIBackgroundModes = {“audio”, “remote-notification”},
[test code]
local function callbackListener( event )
if event.completed then – can’t receive on App suspended
playNextMusic()
end
end
handle = audio.loadStream(“test.mp3”)
audio.play( handle, { channel = 1, loops = 0, onComplete=callbackListener } )
Can anybody help me?