# Electron SDK not calling callbacks on Mac

**URL:** <https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566>\
**Category:** Electron\
**Created:** [August 19, 2019, 10:01am UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566 "2019-08-19T10:01:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgarg](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sgarg](https://devforum.zoom.us/u/sgarg)\
**Post date:** [August 19, 2019, 10:01am UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/1 "2019-08-19T10:01:54Z")

</div>

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](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](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`

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 19, 2019, 5:34pm UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/2 "2019-08-19T17:34:11Z")

</div>

Hi sgarg,

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

Thanks!

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [August 20, 2019, 1:41am UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/3 "2019-08-20T01:41:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![sgarg](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sgarg](https://devforum.zoom.us/u/sgarg)\
**Post date:** [August 20, 2019, 7:45pm UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/4 "2019-08-20T19:45:42Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![bella.tu](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bella.tu/32/1227_2.png) [@bella.tu](https://devforum.zoom.us/u/bella.tu)\
**Post date:** [August 22, 2019, 6:55am UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/5 "2019-08-22T06:55:35Z")

</div>

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()

---

<div class="post-metadata">

**Author:** ![sgarg](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@sgarg](https://devforum.zoom.us/u/sgarg)\
**Post date:** [August 22, 2019, 8:56am UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/6 "2019-08-22T08:56:47Z")

</div>

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](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:
> 
> ```auto
> meetingstatuscb
> meetinguserjoincb
> meetinguserleftcb
> 
> ```
> 
> We did not try to test or use `meetinghostchangecb`

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [August 23, 2019, 2:14am UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/7 "2019-08-23T02:14:14Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:39pm UTC](https://devforum.zoom.us/t/electron-sdk-not-calling-callbacks-on-mac/5566/8 "2020-08-21T18:39:26Z")

</div>

Closed on August 21, 2020, 6:39pm UTC


