getBadgeNumber( callback ) method

Used to fetch the badge count for the application.

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

Syntax

<static> getBadgeNumber( callback )

Parameters

Name Type Description
callback function Success callback to call when to send the badge count.The callback function will contain an argument in json format with the current badge count. Look into the example for the deail on how to use them.

Example

function getBadgeNumCallback(data) { badgecount = data["badgecount"];}
sap.Push.getBadgeNumber(getBadgeNumCallback);

Source

push.js, line 247.