Recent searches


No recent searches

Zendesk Messaging SDK - Badge number to app icon when push notification is received in the background



Posted Oct 09, 2024

Hi, I'm using the new Zendesk Messaging SDK to receive push notification on iOS and Android. https://developer.zendesk.com/documentation/zendesk-web-widget-sdks/sdks/ios/push_notifications/

Question: Can Zendesk set an unread messages number badge to the app icon when application is in the background and a push notification is received?

For example on iOS it would require that “badge” property would be sent in the push notification payload from the Zendesk server. Is Zendesk capable of sending that as part of the payload to update the badge? Reference to Apple documentation: https://developer.apple.com/documentation/usernotifications/generating-a-remote-notification#Payload-key-reference

On Android I think we would need a way to receive the unread messages number in the push notification payload, but we would need our own implementation to read it and set the badge on the app icon, common solution is using a library like ShortcutBadger.

Please note that this topic is about background functionality. When the app is on the foreground, we can always listen to unreadMessageCountChanged from Zendesk SDK and update the badge number manually, that's not an issue.


0

1

1 comment

image avatar

Onur Okutan

Zendesk Product Manager

Hi Mikko,

Thanks very much for sharing your feedback! It’s a great idea, and while it’s not something we currently support, I’ve added it to our backlog for future consideration. This means we’ll review it during our next planning cycle to see if it can be prioritized.

We’ll also keep this post open for others to weigh in with their thoughts and use cases. Just as a heads-up, as per our Community Guidelines, we can’t promise to prioritize any one piece of feedback, but we appreciate your input!

Thanks again for your suggestion.
Best,
Onur

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post