-
Notifications
You must be signed in to change notification settings - Fork 222
Open
Labels
Description
Description
My app plays sounds when user performs certain actions (button clicks etc) and has Rive animations with sound. iOS build has a strange issue: last app sound (which is unrelated to Rive) is played after minimizing-maximizing the app.
I'm able to reproduce it only on iOS and only when running on a physical device (issue is present in both debug and release builds).
Rive file has an embedded sound and audioplayers package is used to play other sounds.
I suspect this could be related to how both rive and audioplayers play audio in the native layer.
Steps To Reproduce
Example app with the issue:
Steps to reproduce the behavior:
- In the test app tap the button to play 'button click' sound
- Play the Rive animation using 'play' button
- Minimize the app
- Maximize the app
- 'Button click' sound is played after app is maximized and without user's action
Source .riv/.rev file
Expected behavior
No sound is played after app is maximized
Device & Versions (please complete the following information)
- Flutter Rive version:
^0.14.0-dev.8 - Device: iPhone 12 Mini, iPhone 14 (not reproducible on iOS simulator)
- OS: iOS 18.6, iOS 26
- Flutter Version:
Flutter 3.35.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision a402d9a437 (2 weeks ago) • 2025-09-03 14:54:31 -0700
Engine • hash 672c59cfa87c8070c20ba2cd1a6c2a1baf5cf08b (revision ddf47dd3ff) (14 days ago) • 2025-09-03 20:02:13.000Z
Tools • Dart 3.9.2 • DevTools 2.48.0