cordova-plugin-nativeaudio
cordova-plugin-nativeaudio copied to clipboard
Sound muted in standby
Hi, I noticed that the sound stops to play when the phone goes in standby mode, or also when - on android - the home button is pressed. Is it possible to fix this, and have the sound playing also in standby?
Thanks
The behavior was intensionally designed, stop playing audio when app go to background.
What's your use case for the requirement?
I'm developing an app to play guided meditations. I need to use this library because I must play in background a mix of different loops containing relaxing sounds, like beach waves, birds, wind, chimes, etc.
Apart from cordova, iOS sound logic is already pretty complicated and not well documented in my opinion, you might achieve what you want by manually editing the plugin and modifying the AVAudioSession
+1 Same here. Maybe if you create some options to turn of the onPause event.
+1 for new feature (keep playing sound if app is inactive)!
+1 for new feature (keep playing sound if app is inactive)!
+1 for new feature (keep playing sound if app is inactive)!
+1 for new feature (keep playing sound if app is inactive)!