Clearing Push Notification Badge on iOS

It appears that clearing the push notification is not possible with Ionic push. The Ionic Push Api doesn’t allow the clearBadge: true option that would make the Phonegap Push Plugin to clear the badge on iOS. Is there a way around this?

Hi superkarmi, I don’t know if you still need this, but I leave it for any other could be needing it.

This is an example of json body to clear the badge count via Ionic Push Notification:

POST https://api.ionic.io/push/notifications

{
  "profile": "profilename",
    "notification": {
    	"payload": {
          "key": "value"
        },
        "ios": {
        	"content_available": 1,
        	"badge": 0
        }
    },
    "send_to_all": false,
    "tokens": ["token1"]
}

Regards.