my teammate and I finished a commercial game project in html5, and after struggling for a while with sound across android and iOS, my teammate finally got it almost working everywhere.
The problem is that the "on suspended" and "on resumed" events of the browser object aren't called on Safari. Thus, the looped music doesn't stop when pressing home or switching tabs.
It's working fine on desktop and on chrome in particular. Below, you'll find an example project and capx that you can test directly : the square changes color when the "on suspended" event is being called.
May you have any solution to this problem please ? May there be another way to detect a tab switch or if the user presses the home button on ios and/or android ?