Stevenindonesia Member Licensed User Jul 10, 2024 #1 Hello all, I have been using firebase notification for all my app messaging. These are my example of codes : B4X: Private fm As FirebaseMessaging ... ... fm.Initialize("fm") fm.FCMConnect wait for fm_FCMConnected fm.SubscribeToTopic("MYTopic") Everything works fine. The only problem is i dont know how i can write a code to clear notification (As application still have a red dot on its icon). Have someone done this before? Thank you
Hello all, I have been using firebase notification for all my app messaging. These are my example of codes : B4X: Private fm As FirebaseMessaging ... ... fm.Initialize("fm") fm.FCMConnect wait for fm_FCMConnected fm.SubscribeToTopic("MYTopic") Everything works fine. The only problem is i dont know how i can write a code to clear notification (As application still have a red dot on its icon). Have someone done this before? Thank you
Erel B4X founder Staff member Licensed User Longtime User Jul 10, 2024 #2 Try this: Code: App.ApplicationIconBadgeNumber = 0 Upvote 0