iOS audio context suspended on visibility change


Here is an example that demonstrates the issue.

  1. load this PC app in iOS Safari. Tap button few times to hear button clicks.
  2. switch to a new tab eg google
  3. switch back to PC app.
  4. Tap button again. Now there is no sound.

Mac chrome, Mac Safari, and Android Chrome, do not have this problem

It seems that the audio context is suspended when it should be active.

The following does seem to work around the issue.'resume', function() {
        if ( !== "running") {
    }, this);

created an engine issue

1 Like