I am working on remote push notification and getting badge count in payload. it's working fine when my app is active(foreground) but when app run in background and i got push then badge count not increases. Please help.
when app is active it calls didReceiveNotification
method.
I am receiving this type of info in payload.
{aps = {alert = "Hi all.";badge = 6;sound = default;};}
I am not sure where is issue.