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 how to create notification badge in kony.
Is it possible for me to push a notification badge into app icon which present in phone launcher ? I mean, like the facebook icon below. That icon contain small badge which show unread notification.
**Image removed for security reasons**
for further info, this is the link : https://stackoverflow.com/questions/17565307/how-to-display-count-of-notifications-in-app-launcher-icon
I wonder if kony has a library that enable me to create an apps which contain a badge like that. Thanks for any insight and hint.
Kony has an API which will shows the badge on the app icon as well as on widgets. For that you have to use the Badge API. Please check the doc link for more details.
Badge on the app icon, depend upon the push notification messages, number of messages revived by the app that number of badge count(number) will appear on the app icon.
Badge count is not available for android devices. Right now it is only available for iphone and ipad. if you want to configure the badge from the push payload itself for iphone/Android devices, then you have to write the custom logic using our kpns methods to implement the badge from the code.For that purpose you have to understand multiple REST api's available for kpns services from the below link. you have to use <badge><badge/> tag for setting the badge value for the app of that specific ksid. So whenever the custom opened the push message you have to update that status to the kms back using the "update push open status to the mobile fabric".
later you have to fetch all the message send to that ksid using "fetch all messages from kony" api and have to take the opened status count. Now when you send the notification you have to subtract this opened count value from the total messages sent count and add numeric value 1 and send this value through <badge> tag of push message payload.
This will be a time taking process, but go through the documentation completely which gives knowledge and idea regarding the usage of api's available.
Thank you for the explanation. I guess it need more research on this feature, but i believe it worth the time. Since native android (up to SDK 27 /oreo) didn't provide badge feature, all i can do is trying to create third party library or waiting until google decide to provide badge in their native library 😁