cordova-music-controls-plugin
cordova-music-controls-plugin copied to clipboard
User kill app, notification not.
Hi i use this plugin in Android app now. When user or OS kill app notification does not disappear.
Yes , The same issue also i have faced , Has anyone solved this issue?
I had the same problem and i've created a small workaround.
window.addEventListener('beforeunload', () => { this.musicControls.destroy(); });
Just call the EL somewhere in your logic and it will destroy the music control while killing the app.