Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kharissa opened this issue May 2, 2020 · 0 comments

Comments

@kharissa
Copy link

kharissa commented May 2, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant