How to add/remove the Badge count on an application icon?

How to add/remove the Badge count on an application icon?

BY 16 Nov 2015 Web Code Snippet
■ Summary

– Badge API is responsible for showing the number of notifications on the icon of an application.
– If you want to use the Badge API, you need to add the following privilege in the config.xml.
  
Written by