Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show notification count on app icon like Facebook?

I want to show unread notification count on my app icon when app is not opened. this post seems to be close but it is 3 years old. Has there been any change on this or I should go with solutions provided in the accepted answer?

notification icon

like image 245
theUturn Avatar asked May 22 '16 11:05

theUturn


People also ask

How do I get my app icon to show notification numbers?

If you want to change badge with number, you can be changed in NOTIFICATION SETTING on the notification panel or Settings > Notifications > App icon badges > Select Show with number.

Why are my app icon badges not showing numbers?

1 Solution settings->notifications-> advanced settings-> app icon badges. Make sure that is on. You can then tap into it for more settings like changing from numbers to a dot.

Why are my app badges not showing numbers iPhone?

The most likely reason that your iPhone badges don't appear to be working relates to notification settings. If you have turned off the badge notifications for an application inadvertently, or the application's default setting is to have badges disabled, you won't receive badge alerts for that application.


1 Answers

Unfortunately you cant achieve this for all android devices.

Certain manufacturers (e.g. Samsung or Sony) have included this functionality into their customised Android launchers. Also some 3rd-party launchers (e.g. Nova Launcher) have included an API to accomplish this.

Some related posts for more information:

  • How does Facebook add badge numbers on app icon in Android?
  • https://stackoverflow.com/questions/18205569/does-samsung-modifies-its-android-roms-to-have-badges-on-email-and-sms-icons?rq=1
  • adding notification badge on app icon in android
  • How to interface with the BadgeProvider on Samsung phones to add a count to the app icon?
  • How to add a notification badge/count to application icon on Sony Xperia devices?
  • How to make application badge on android?
  • How to display count of notifications in app launcher icon

And some libraries that might be helpful:

  • Samsung badger

  • ShortcutBadger

  • Badges

and more...

like image 139
BooDoo Avatar answered Oct 18 '22 03:10

BooDoo