Android Question Clear Firebase notification

Khairy Abdelhamid

Active Member
Licensed User
Dear All,

Good days.
I need to clear firebase notification.
The notification already occurred correctly, and make notification in pull-down menu, also add hint number "1" on the app. icon.
How can I clear them when opening (resuming) the app.

Thanks in advance.
 

DonManfred

Expert
Licensed User
Longtime User
1. Use autocancel in the notification builder
B4X:
n.AutoCancel(True)
or
2. use dismiss on the notification object with the ID 815 (which should be the id when generating the notification)
B4X:
        Dim nn As Notification
        nn.Cancel(815)
 
Upvote 0
Top