Electron SDK not calling callbacks on Mac

When using the new unified electron SDK for Mac and Windows, the callback functions are not getting called on Mac (we didn’t test on Windows).

In https://github.com/zoom/zoom-sdk-electron/blob/master/demo/main.js#L35

The first callback sdkauthCB is successfully called and it tries to register all the other callbacks, but the other callbacks don’t get called later.

let opts = {
  meetingstatuscb: meetingstatuscb,
  meetinguserjoincb: meetinguserjoincb,
  meetinguserleftcb: meetinguserleftcb,
  meetinghostchangecb: meetinghostchangecb,
}

Possible Reason:
In https://github.com/zoom/zoom-sdk-electron/blob/master/lib/zoom_meeting.js#L51

In function onUserJoin(userinfolist), the parameter userinfolist gets integer values 1, 3, 16 etc… on Mac due to which the remaining code which is trying to read this as an array and then call _meetinguserjoincb(useritem) doesn’t run.

We didn’t investigate why other callbacks are not getting called, but at least these 3 callbacks are NOT getting called on Mac:

  meetingstatuscb
  meetinguserjoincb
  meetinguserleftcb

We did not try to test or use meetinghostchangecb

Hi sgarg,

Thanks for the post. I will forward this information to our engineering team and get back to you asap.

Thanks!

hi
these callback need in meeting status ,you need to start a meeting to test these callback

We did test with meetings, we were getting these callbacks with previous non-unified electron SDK for mac (https://github.com/zoom/zoom-macsdk-electron).

When a zoom meeting has started, we would expect the MEETING_STATUS_INMEETING status in meetingstatuscb. Similarly, we would expect meetinguserjoincb and meetinguserleftcb callbacks to be called when a user joins or leaves a meeting.

But with the new unified electron SDK, these callbacks are not called on Mac when a meeting is joined, or when a user joins or leaves a meeting.

hi
meetinguserjoincb and meetinguserleftcb can gatting called,just the sdk not output the result.if you want to show the result on terminal,

need add console.log() in zoom_meeting.js of the function onUserLeft()

and function onUserJoin()

Did you try to test the Zoom electron SDK demo code on Mac? Did the callbacks get called when you tested it?

We tested the demo code with console.log messages. We have been using the Zoom electron SDK in our Mac app since more than 6 months now and these callbacks were getting called in the previous electron SDK. I request you to please read the original post again where we have mentioned other details also.

We even tried to debug the problem in Zoom electron SDK’s JS and ObjC code. As mentioned in the original post above:

Possible Reason:
In https://github.com/zoom/zoom-sdk-electron/blob/master/lib/zoom_meeting.js#L51

In function onUserJoin(userinfolist), the parameter userinfolist gets integer values 1, 3, 16 etc… on Mac due to which the remaining code which is trying to read this as an array and then call _meetinguserjoincb(useritem) doesn’t run.

We didn’t investigate why other callbacks are not getting called, but at least these 3 callbacks are NOT getting called on Mac:

  meetingstatuscb
  meetinguserjoincb
  meetinguserleftcb

We did not try to test or use meetinghostchangecb

Hi sgarg,

Thank you very much for the reply and the information. We have identified the issue in our SDK, the fix will be available in the upcoming release.

Thanks again!

1 Like