rive-ios
rive-ios copied to clipboard
Stop Other Music App
When the app goes into the background, other music apps stop working.
The cause is probably
- (void)didEnterBackground:(NSNotification*)notification { rive::AudioEngine::RuntimeEngine()->stop(); }
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.
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.
Awesome, thank you!
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.
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.
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.
It could be closed already as resolved.
@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.