Skip to content

External sounds are prevented in background [Mobile Firefox, Mobile Safari] #257

@kharissa

Description

@kharissa

I am using the react-sound component that uses SoundManager2 library. I have already posted my issue in react-sound but have not got any responses so I thought I'd also post here too:

The sound in our app is playing as expected, however each time a sound is played on our app it causes the background music (e.g. Spotify) to stop playing. This only happens for users in certain environments (Firefox on Android and Safari on iOS Mobile specifically).

We have already implemented the following in App.js but the problem persists:

function App() {
  window.soundManager.setup({ ignoreMobileRestrictions: true });
  return (
    // ...
  );
}

Is there anything else that I should be looking at? Is there a different way to implement the above?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions