[Pushwoosh Plugin] Resetting Badge number to zero

[Pushwoosh Plugin] Resetting Badge number to zero

  

Hello,


I installed and configured the Pushwoosh Plugin. Everything is working as it should. Except that I'm unable to reset the badge number to zero. I can set it to any other number I want and it works as expected. But whenever I call "SendPushNotificationToUserID" or "SendPushNotificationToDevice" and selecting 0 as parameter for Badge, the badgenumber on the App Icon remains unchanged. I also tried to pass NullIdentifier() and to leave it blank. The device always receives the new notification but the badge number remains unchanged.

Also, I would like to know if there is another way to reset the badge number except by sending a new notification?


Many thanks in advance and best regards,


Achim

Hi Achim,

try to create a client action with a custom javascript node inside and run the following code

 pushNotification.setApplicationIconBadgeNumber(0)


Let us know if it works.

Cheers,
Miguel