Hi,
UpdatePushBadgeforDevice/UpdatePushBadgeforUser alters the badge values on the App42 Push Server corresponding to the parameters passed. That will be reflected on the device side when the device receives push next time if the message contains "badge" key with value "increment".
These methods do not alter the badge icon directly on the device side.For more details, you can go through this blog.
Hope it will help.