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

How to detect that a notification has been removed ? #49

Open
lamarios opened this issue May 12, 2024 · 1 comment
Open

How to detect that a notification has been removed ? #49

lamarios opened this issue May 12, 2024 · 1 comment

Comments

@lamarios
Copy link

No description provided.

@jiusanzhou
Copy link
Owner

Hi @lamarios currently this plugin have not implement this. If we want to do that, we can send to removed event to flutter side.

override fun onNotificationRemoved(sbn: StatusBarNotification?) {
super.onNotificationRemoved(sbn)
if (sbn == null) return
val evt = NotificationEvent(mContext, sbn)
// remove the event from cache
eventsCache.remove(evt.uid)
Log.d(TAG, "notification removed: ${evt.uid}")
}

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