This question is locked. New answers and comments are not allowed.
Hi,
I am working on an app that is using the "Telerik Verified" push plugin in AppBuilder. I am able to receive notifications from my server and the app's badge number is set to the value that is received in the payload. The thing is that the badge number never seems to increment automatically when new notifications are received.
I have looked around for solutions and have even tried setting the badge number to "+1" in the payload, but iOS seems to ignore this value if its being sent as a string. I even tried using the "setApplicationIconBadgeNumber" function but it is not being called while the app is not running.
The only way I found was to save every device's badge count on the server, which is incremented on the server side, and clear that value every time the app is launched, but I would rather be able to solve this problem on the client side.
Is there any way I could fix this issue without having to sync each device's notification state with the server?
Regards
I am working on an app that is using the "Telerik Verified" push plugin in AppBuilder. I am able to receive notifications from my server and the app's badge number is set to the value that is received in the payload. The thing is that the badge number never seems to increment automatically when new notifications are received.
I have looked around for solutions and have even tried setting the badge number to "+1" in the payload, but iOS seems to ignore this value if its being sent as a string. I even tried using the "setApplicationIconBadgeNumber" function but it is not being called while the app is not running.
The only way I found was to save every device's badge count on the server, which is incremented on the server side, and clear that value every time the app is launched, but I would rather be able to solve this problem on the client side.
Is there any way I could fix this issue without having to sync each device's notification state with the server?
Regards