Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Notification when App is killed #28

Closed
yusufceylan opened this issue Mar 11, 2017 · 2 comments
Closed

Remove Notification when App is killed #28

yusufceylan opened this issue Mar 11, 2017 · 2 comments

Comments

@yusufceylan
Copy link

I am creating notification in onStop but when user killed the app, notification still exist and causes a crash if you click it. is it possible to remove notification when app is killed?

    @Override
    protected void onStop() {
        super.onStop();
        // Create notification
        jcplayerView.createNotification();
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        // Destroy notification
    }
@jeancsanchez
Copy link
Owner

jeancsanchez commented Mar 13, 2017

@yusufceylan This answer cans help you #22

@yusufceylan
Copy link
Author

@jeancsanchez still same. I added jcplayerView.kill() in my onDestroy method but notification does not removed when app is killed

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

No branches or pull requests

2 participants