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.badge.set(2); // this removes the badge median.onesignal.badge.set(0);
Legacy Support
This method is not available on the legacy OneSignal plugin. To learn more about it see Legacy Mode
Updated 4 days ago