Check the notifications are from Zendesk Messaging SDK | Community
Skip to main content

Check the notifications are from Zendesk Messaging SDK

  • October 3, 2023
  • 1 reply
  • 0 views

Pulkeet

 

Other than the  PushResponsibility  api which returns MESSAGING_SHOULD_DISPLAY , MESSAGING_SHOULD_NOT_DISPLAY or NOT_FROM_MESSAGING.  is there any other way to check if the notifications are from Zendesk Messaging.

Sharing the notification payload details below 

{conversationId=50a86chdjhdf25e93a8807b, origin=SupportKit, smoochNotification=true, message={"role":"appMaker","source":{"type":"zd:agentWorkspace"},"authorId":"00uf5we4jkhdjd4R70h7","name":"XYZ Inc","avatarUrl":"https://xyz-abc.zendesk.com/images/0000/default-avatar-80.png","_id":"6516977ca8419b3e","type":"text","received":1695388.078,"metadata":{"__zendesk_msg.agent.id":"agent:42475713","__zendesk_msg.id":"","__zendesk_msg.source_type":"sunco_web"},"text":"Hello , how are you ?"}}

Can i put a check if conversationId is present in the notification payload than this notification is from Zendesk messaging ?

 

1 reply

Greg29
  • October 3, 2023

Hi Pulkeet! In this situation, `smoochNotification=true` is an indication that it's coming from our messaging service. `conversationId` is a bit too broad to reliably say is a good indicator at scale, since other companies very likely use that at some level as well. Smooch is the company that we acquired years ago and is the underlying functionality of the messaging product, so it's safe to say that one is unique!