blogs.shephertz.com/2014/05/19/increment-push-notification-badge/
Automatic Badge Count in Push Notification requires logic to be written on the client as well as the server side to maintain its count and messages clicked on. Well, if you ever plan of doing it alone, know that your time is going to go for a toss.
It looks like you're new here. If you want to get involved, click one of these buttons!