-1

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();

Community
  • 1
  • 1
muvaf
  • 323
  • 4
  • 9

1 Answers1

0

I found the solution. Actually I figured it out that it is the same way you do in objective-c. Someone who knows how to develop plugin for Phonegap can convert this into a plugin, which would be very helpful who has no idea about obj-c.

Community
  • 1
  • 1
muvaf
  • 323
  • 4
  • 9