How can I get the notification badge on my app menu?


I am working on an app where I could really use the notification badge on the app menu to alert users that they have new notifications, is there a bit of custom code I can use for this purpose?

My app is currently using the bottom menu style but it would be great to know how I can add this in the different types of app menus.