Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Notification should be destroy if app is killed #11

Open
eamador opened this issue Sep 3, 2020 · 2 comments
Open

Notification should be destroy if app is killed #11

eamador opened this issue Sep 3, 2020 · 2 comments

Comments

@eamador
Copy link

eamador commented Sep 3, 2020

Hi there!

I am using the plugin in an ionic Android app, everything works ok but i think the notification should get closed if the app is manually killed. I can see in the Android source there is a service that (seems to me) should cater for that, but it is actually not working.

/android/src/main/java/com/ingageco/capacitormusiccontrols/CMCNotifyKiller.java

@Override
public void onDestroy() {
	super.onDestroy();
	sleepWell(true);
}

Is this service's purpose to detect when the app is closed and destroy the notification? If so, looks like something is broken and needs to get fixed, otherwise could you please you advise how i could accomplish that?

Tested in Xiaomi Redmi 7A using Android 9

Thank you,
Best regards.
Eduardo.

@ingageco
Copy link
Owner

ingageco commented Sep 4, 2020

Good find. I found my way around rebuilding this plugin for Capacitor, but i'm unsure of how to make this work. PR will be gladly accepted.

@elieraad
Copy link

Hello, has this issue been resolved yet?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants