Zoom Phone Embed not receiving Matching Contact Event

API Endpoint(s) and/or Zoom API Event(s)

Match contacts

When enableContactMatching is true, the widget matches contacts by phone number on Incoming, Outgoing, History, and Voicemail pages.

zp-contact-match-event

zp-contact-match-event fires on the above pages.

{
  "type": "zp-contact-match-event",
  "data": {
    "requestId": <request id>,
    "phoneNumbers": [<phone number array>] 
  }
}

Description
We are not receiving this event even if we already set the enableContactMatching flag to TRUE on the init config section shown below. We already checked on incoming and outgoing calls but the event is not being triggered

  document.querySelector('iframe#zoom-embeddable-phone-iframe').contentWindow.postMessage(
      {
        type: 'zp-init-config',
        data: {
          enableSavingLog: false,
          enableAutoLog: true,
          enableContactSearching: true,
          enableContactMatching: true,
        },
      },
      'https://applications.zoom.us',
    );

Hi @zoomdev11 , is this new behavior or this is the first time you’re trying to use this event?

Hi , so this is my first time trying to use this event , the way I’m trying to catch the event is the same like the other ones that are comming by default(code below) , thanks so much for the help!

 window.addEventListener('message', (e) => {
        const data = e.data;
        if (data) {
          switch (data.type) {
            case 'zp-call-ringing-event':
              console.log('call ringing: ', data.data);
              break;
            case 'zp-call-connected-event':
              console.log('call connected: ', data.data);
              break;
            case 'zp-contact-match-event':
              console.log('match event: ', data.data);
              break;
            default:
          }
        }
      });

I am unable to test this at this time as I need to update my test account licensing for Zoom Phone, but could you please verify the following from the documentation?


This sounds like it may be something in the web portal.

Can you confirm you’re receiving the other events? I noticed, they don’t have the same settings requirement as zp-contact-match-event.

Hi , yes I’m able to catch all the other events but the zp-contact-match-event is not. Will share with you the complete snippet from my code

  useEffect(() => {
    setupPermissions();

    document.querySelector('iframe#zoom-embeddable-phone-iframe').contentWindow.postMessage(
      {
        type: 'zp-init-config',
        data: {
          enableSavingLog: false,
          enableAutoLog: true,
          enableContactSearching: true,
          enableContactMatching: true,
        },
      },
      'https://applications.zoom.us',
    );

    // TODO: US96612 Read Zoom Phone events
      window.addEventListener('message', (e) => {
        const data = e.data;
        if (data) {
          switch (data.type) {
            case 'zp-call-ringing-event':
              console.log('call ringing: ', data.data);
              break;
            case 'zp-call-connected-event':
              console.log('call connected: ', data.data);
              break;
            case 'zp-call-ended-event':
              console.log('call ended: ', data.data);
              break;
            case 'zp-contact-match-event':
              console.log('match event: ', data.data);
              break;
            default:
          }
        }
      });
  }, []);

All the events in the switch sentence are being fired the only exception is the ‘zp-contact-match-event’

@zoomdev11 can you please confirm or clarify if there’s something in the web portal Settings that needs to be done?

We’ve looked through the account Settings and did not see anything that mentioned autolog/autologging.

Should we be checking a different settings location? Would this setting use a different name that we could search for?

Hi @zoomdev11 ,

I’ve just reached out to our Zoom Phone team for insight.

1 Like

Thanks Appreciate it!

Hi @gianni.zoom Happy New year ! Any news so far ? thanks in advance

Hi @zoomdev11 ,

Happy new year! I’ve just followed up and hope to get some insight, otherwise I will follow up for a few more details to escalate into support. Appreciate your patience!

Hi @zoomdev11 ,

Based on my conversations, this seems like a bug. Can you please private message me your developer email and white listed url so the bug report?

It would be helpful to also provide a link to a recording showing the working vs. non working events.

Thanks!

1 Like

Having the same issue. I swear it was working, but not is not. Not clue what this does, but looking at the embedded widget code, it seems to read this value “thirdConfig”

Hi @provega ,

We did not hear back from the other developer, but it’d be helpful if you shared the following details via my private message so I can submit a request for further investigation"

  • developer email associated with embed email
  • whitelisted url
  • steps to reproduce
  • short recording of issue