rive-app / rive-app/rive-flutter
Rive plays unrelated sound
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 1.5k
- Forks
- 240
- PR merge metrics
- No merged PRs in 30d
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
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the provided Archive.zip and test_riv_rev.zip, then reproduce on a physical iOS device using the listed Flutter and Rive versions. Compare the embedded Rive sound with the audioplayers button sound across minimize and maximize; done means maximizing the app does not replay the unrelated button-click sound.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- dart, flutter, ios
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100