Android application Badge

This thread was migrated from an old forum. It may contain information that are no longer valid. For further assistance, please post a new question or open a support ticket from the Customer Support portal.

Hi,

I wanna ask about application badge. I found that kony has support for application badge which i found at kony documentation here.

http://docs.kony.com/konylibrary/visualizer/viz_api_dev_guide/Default.htm#kony.application_functions_badgeapi.htm%3FTocPath%3DBadge%2520API%7C_____1

But currently it only work on iOS platform. What i wanna ask is, how about Android ? Did kony has support too for set badge in android ?

any help or hint will be much appreciated.

Thank you

Hi,

As per the documentation, Badge API is not present from native Android OS itself and hence Kony also doesn't have any provision for Badge for android channel.

However, certain manufacturers provide certain API to get that look and feel of badge. This is specific to Samsung and Sony. Please check the below links for more details for your reference.

http://stackoverflow.com/questions/17565307/how-to-display-count-of-notifications-in-app-launcher-icon

http://stackoverflow.com/questions/20216806/how-to-add-a-notification-badge-count-to-application-icon-on-sony-xperia-devices

Hi @Thewesv Dyew​ ,

Thank you for your explanation about badge API limitation in android. In order to do so, is it possible for me to displaying badge in Android using third party library ? Thank you.

Hi @Avv Pipew​ , It's a late reply but posting it in the interest of community.

Even In native android, there is no direct API to set badges. However, few OEMS's provide API's to get that similar look and feel. Please check the below links for more details for your reference.

https://forums.androidcentral.com/google-pixel-pixel-xl/739282-those-who-looking-notification-badges.html

http://stackoverflow.com/questions/17565307/how-to-display-count-of-notifications-in-app-launcher-icon

http://stackoverflow.com/questions/20216806/how-to-add-a-notification-badge-count-to-application-icon-on-sony-xperia-devices

Starting with 8.0 (API level 26), notification badges (also known as notification dots) appear on a launcher icon when the associated app has an active notification. Users can long-press on the app icon to reveal the notifications (alongside any app shortcuts), as shown in attachments. .

These dots appear by default in launcher apps that support them and there's nothing your app needs to do.

Notification Badge (Android Specific)

Reference: https://developer.android.com/training/notify-user/badges

hi @Bewnvdette Hvwdvcwe​ ,

in latest android version (oreo and pie), the default badges is just a blue dot. So i think that is all about liability in android feature nowadays.

Thank you for your answer.

Hi @Avv Pipew​ if Satish;'s answer helped, please click [Select as Best] under the response that helped the most to close out this post. Thanks!