The notification API offers information about user notifications in your app, letting you build custom UI indicators such as unread badge counts.
How to use the notification API to observe notification summary information
Ask Cordy