I'm able to to manage the update of badge icon when the app is in background but i cant do it when the app is killed.. Any suggestions?
Asked
Active
Viewed 606 times
0
-
There is no way to do that, badge counter is not supposed to be manipulated like that anyway. – A-Live Feb 02 '16 at 10:08
-
But eg. Facebook, Gmail... they are able to mange this kind of things. – Gaston Feb 02 '16 at 10:16
-
Using remote notifications. Not the app itself. – ZeMoon Feb 02 '16 at 10:27
-
If you have a server sending push notifications, it can be used to set any badge counter. – A-Live Feb 02 '16 at 10:35
-
Yes, i have, take a look at my payload: dict = ["APNS": "{\"aps\":{\"content-available\": \"1\", \"badge\":\"1\",\"channel\":\"\(channel)\"}}"] – Gaston Feb 02 '16 at 10:42
-
****Solved**** I was passing a String instead of an int – Gaston Feb 11 '16 at 14:01
-
How whatsapp developer do update the badge count after killing the app ? – Sommm Jan 14 '17 at 14:35