We are developing a game called GnollHack, which uses FMOD as sound middleware. What I’m going to describe is probably some sort of an iOS system problem, but I thought that I ask here just in case someone knows a workaround. The problem is that if I watch an ad with video and sound in Safari (or Chrome), and then start directly our game, the sounds do not play at all. If (1) I start the game, then switch to any other app, and then switch back to the game, or (2) go first to another app, go back to home screen, and only then start the game, the sounds start playing / being audible. Also they become audible if I restart the app. As far as I can see, FMOD is working just fine, but there is just no audio, which may be some sort of an audio session problem. AVAudioSessionCategory is ambient, but the same problems occur also with playback. Any of the settings or modes I have tried do not seem to make a difference.
Any ideas how to force the audio to be audible immediately after watching ads in Safari would be appreciated. This is a problem only with iOS and only if I watch first ads in a browser (another app like Safari or Chrome) that contain video and sound immediately prior to starting the game. This problem appears on all iOS devices we have tested.