Badge Count

You can set badge count that shows the current number of unread notifications. The badge will appear on top right of the app icon on iOS. On Android it needs to be supported by OEMs. You can read more about badge counts on OneSignal website

You can set the badge count manually using the following Median JavaScript badge function

↔️Median JavaScript Bridge

median.onesignal.setBadge(2);

// this removes the badge
median.onesignal.setBadge(0);

🚧

Legacy Support

This method is not available on the legacy OneSignal plugin. To learn more about it see Legacy Mode