Kirankumar Dafda Kirankumar Dafda - 1 year ago 104
iOS Question

Cordova Push notifitication badge not displaying on app icon iOS

I am using cordova push plugin where I am getting notification and all data I needed, but also I want to set badge as per the unread notification or the number i am getting into count of push notification but I am not sure why I am not getting this count as a badge into app icon of iOS device

Here is the json format I am getting into push notification success function

"message":"Username likes your product"

Sound and message both were working perfect but not count.

Any suggestion ?

Answer Source

I noticed that, there is a string value of count in the response, and it was the mistake.

Count value must be an integer.

Hope this will help others too.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download