rive-ios icon indicating copy to clipboard operation
rive-ios copied to clipboard

Stop Other Music App

Open y-daniel-1113 opened this issue 9 months ago • 9 comments

When the app goes into the background, other music apps stop working.

y-daniel-1113 avatar Apr 26 '24 04:04 y-daniel-1113

The cause is probably

  • (void)didEnterBackground:(NSNotification*)notification { rive::AudioEngine::RuntimeEngine()->stop(); }

y-daniel-1113 avatar Apr 26 '24 04:04 y-daniel-1113

Would love to get this fixed as well. Users are messaging our team and saying they won't use the app since our Rive animations are stopping their other music apps.

AlexanderBZ avatar May 12 '24 14:05 AlexanderBZ

We've rolled back rive to the previous release until this bug is fixed. It's a critical bug and I'm surprised it haven't received enough attention.

molind avatar May 12 '24 14:05 molind

Awesome, thank you!

AlexanderBZ avatar May 12 '24 15:05 AlexanderBZ

Same. This is critical issue for our product. We rolled back to v5.10.0, so We couldn't use sound feature. Please provide us the handler.

psbss avatar May 29 '24 14:05 psbss

As long as your rive animations don't have audio included this should now be fixed in 5.12.1 where Rive doesn't initialize audio at all until it's needed.

Kaspik avatar Jun 03 '24 13:06 Kaspik

rive-ios v5.15.1 and above will now by default mix audio rather than stop other audio sources from playing, so if you update to the latest runtime, you should see this behavior fixed.

dskuza avatar Jul 22 '24 16:07 dskuza

It could be closed already as resolved.

molind avatar Aug 09 '24 09:08 molind

@molind Our latest release changes how audio works a little bit. Check out our latest docs here for playing audio on iOS. TL;DR - you might need to configure your AVAudioSession shared instance a bit more, but we now respect those settings, which allows for a lot more configurability.

dskuza avatar Aug 29 '24 17:08 dskuza