cordova-music-controls-plugin icon indicating copy to clipboard operation
cordova-music-controls-plugin copied to clipboard

User kill app, notification not.

Open expmaestro opened this issue 4 years ago • 2 comments

Hi i use this plugin in Android app now. When user or OS kill app notification does not disappear.

expmaestro avatar Jun 25 '20 14:06 expmaestro

Yes , The same issue also i have faced , Has anyone solved this issue?

tamsel12 avatar Jul 21 '20 05:07 tamsel12

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.

WASDLauterbach avatar Dec 15 '20 09:12 WASDLauterbach