How to stop sound when app is minimized ? #1391
Unanswered
lorydi3001
asked this question in
Q&A
Replies: 1 comment
-
Unfortunately I haven't tested or looked into this use case. Maybe you can check for the lifecycle via WidgetsBindingObserver and stop it, when it goes to the background. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I added music to my game. When I minimize the app on the android device the sound keeps playing. Sometimes it crashes if left looping in background but I think this is a known bug.
How can I make it stop when the app is not in foreground and resume when opened back? I thought that this was the default behavior.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions