I created a Flutter
application and I am playing an audio file using the assets_audio_player: ^3.1.1
package
when the app opens.
How can I disable the sound when you exit the app without close it from the running apps
I added the property playInBackground: PlayInBackground.disabledRestoreOnForeground
but you have to exit the app twice for the audio to stop.
Is there any property to add on AndroidManifest.xml
to handle it?