I'm developing a simple game. I want players to be able to listen their music while playing game. On Android there is no problem but on iOS, as soon as app loads sound is gone.
There is a similar question but it's related to use of howler.js. I don't use it. I use Phaser's built-in audio manager.
Actually even if I exclude all sound related code, still it mutes background music.
Is there an option in XCode or some plugin of phonegap? I've been searching for it for days.
Edit: Code about sound manager is here:
At preload state:
this.load.audio('score', ['sounds/score.ogg', 'sounds/score.mp3']);
When I play it:
var scoreSound = game.add.audio('score');
scoreSound.play();