Skip to content

REQUEST: cancel notification #7

@shokarta

Description

@shokarta

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions