Show TOC

setBadgeNumber( number, callback ) methodLocate this document in the navigation structure

Used to set the badge count for the application.

This function is used only by iOS. Other platforms do not have the badge count concept.


<static> setBadgeNumber( number, callback )

Name Type Description
<number> number The badge count to set for the application.
<callback> function Success callback to call when to send the badge count.The callback function will contain an argument in string format. This argument can be used for informative purpose.
function badgeCallback(mesg){}
badgenum = 10;
sap.Push.setBadgeNumber(badgenum, badgeCallback);