Skip to content

Rive plays unrelated sound #540

@aednlaxer

Description

@aednlaxer

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions