Badges

Info
Badges are monochromatic mini-icons that show the source of user’s subscription.

The badge number always shows the number of notifications sent for your app currently in the notification shade.

If you want to add Ocamba badges to your application, add the following (set flag in push method):

OcambaHoood.push(true).init();

If you want to get number of existing notifications:

OcambaHoood.countNotifications();

If you want to set number of notification:

OcambaHoood.setCountNotifications(5);
On This Page