Audio is still playing even if the power button is pressed, even if I switch to another app.
I want to stop playing when app is loosing the focus and resume it again when come back to app.
I spent a lot of time with this issue and no solution yet.
I mention that I set debugger to true and no errors occurs.
Am I miss something?
I appreciate any help!
I use
"nativescript-audio": "6.2.6". "@nativescript/android": "8.4.0", "@nativescript/angular": "~15.0.0", Android 11 (API level 30).
Audio is still playing even if the power button is pressed, even if I switch to another app. I want to stop playing when app is loosing the focus and resume it again when come back to app. I spent a lot of time with this issue and no solution yet. I mention that I set debugger to true and no errors occurs. Am I miss something? I appreciate any help!