Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Voting: 
Vote up!
0 Votes
1 Replies
Unanswered

Badge Number in the App Icon

Question asked by drodr25 drodr25 on Feb 28, 2017 16:43 EST

Hi, Is there a way to set a Badge Number (i,e. for a notification counter ) in the icon of the app? I'm using KonyStudio 6.5 and my app is built for Native (Android, iPhone) platforms. Thanks and regards, Darwin

Vote up!
0 votes
Vote down!

Hi Darwin,

 

Badge value setting feature is available only on iPhone and iPad devices(iOS Platforms).

 

You can use the below code snippet for setting Application badge

kony.application.setApplicationBadgeValue(badgeValue);

where as badgeValue can be number/text

And for retrieving the current badge value :

kony.application.getApplicationBadgeValue();

 

where as in Android based devices, we cannot set Badge value for Application(on App Icon). But we can set Badge values for widgets inside Application.

 

To set the same for widget :

 

<<widgetreference>>.setBadge(badgetext, skin);

 

To get current badge value from widgets:

 

<<widgetreference>>.getBadge(badgetext, skin);

please find more information at http://docs.kony.com/6_5/konylibrary/studio/kony_studio_api_reference_guide/Default.htm#badge.htm#widget.s2

 

Best Regards,

Vamseekrishna K

Replied by: Mar 01, 2017 03:58 EST