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

REQUEST: cancel notification #7

Open
shokarta opened this issue Nov 25, 2024 · 0 comments
Open

REQUEST: cancel notification #7

shokarta opened this issue Nov 25, 2024 · 0 comments

Comments

@shokarta
Copy link

hello Dante,

not sure why cant start PR.
But can I kindly ask you to create also function to remove notification?
often happens, that I receive notificaiton, open app manualy (without notification) and read the content, therefore notification is no longer relevant, but by this way the notification stays therefe forever till i swipe it out or click on it...

in Android (java), its something like:

NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
int notificationId = 1; // Replace with your notification ID
notificationManager.cancel(notificationId);

in iOS (Swift):

let center = UNUserNotificationCenter.current()
let notificationId = "your_notification_id" // Replace with your notification ID
center.removeDeliveredNotifications(withIdentifiers: [notificationId])

but how to manage from QT, this would be extremly usefull enhancement of firebase-qt :)

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

1 participant