OneSignal / react-native-onesignal

React Native Library for OneSignal Push Notifications Service
Other
1.56k stars 369 forks source link

How to show badge count on app's icon instead on red dot ? #1495

Closed janandaraj closed 3 months ago

janandaraj commented 1 year ago

How can we help?

It says in android

The OneSignal SDK automatically sets the badge count on your app to the number of notifications that are currently in the notification shade

I can get red dot on app's icon when there is notification but i expect it to show as number instead of red dot ?

Observations: Checked on app's settings i can see only two Options Badge --> dot or none (Number is not found), for other apps like instagram or whatsapp there is number icon and Number option available on notification settings.

Code of Conduct

brismithers commented 1 year ago

Hi @janandaraj! The dot is supported by Android since v8.0, with the ability to "touch & hold" the app icon to see the number of outstanding notifications.

Only some devices support showing a number in the app badge itself. Can you provide the device you are running on and we can take a look?

Thanks!

janandaraj commented 1 year ago

@brismithers Thanks for the response

I use Realme 8 4G variant running on Android 12 hope this helps

jennantilla commented 3 months ago

@janandaraj apologies that this issue has gone stale--I'm going to go ahead and close this out since it's been some time.

If this is still a concern for you please let us know.

You could check your device and see if a badge count is configurable. You can try:

Notification and status bar > Manage Notification > Badge > Number or Dot

From what I've read, it may not be an option on some Realme devices. Are any other apps on your device showing badge counts?

Thanks!