rive-app / rive-app/rive-flutter

Rive plays unrelated sound

Open
#540 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
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:

Archive.zip

Steps to reproduce the behavior:

  1. In the test app tap the button to play 'button click' sound
  2. Play the Rive animation using 'play' button
  3. Minimize the app
  4. Maximize the app
  5. 'Button click' sound is played after app is maximized and without user's action
Source .riv/.rev file

test_riv_rev.zip

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.