# Callback for event \`onSendAppInvitation\` not benig called

**URL:** <https://devforum.zoom.us/t/callback-for-event-onsendappinvitation-not-benig-called/118234>\
**Category:** Zoom Apps\
**Tags:** sdk\
**Created:** [September 27, 2024, 8:19pm UTC](https://devforum.zoom.us/t/callback-for-event-onsendappinvitation-not-benig-called/118234 "2024-09-27T20:19:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![camador](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/camador/32/60505_2.png) [@camador](https://devforum.zoom.us/u/camador)\
**Post date:** [September 27, 2024, 8:19pm UTC](https://devforum.zoom.us/t/callback-for-event-onsendappinvitation-not-benig-called/118234/1 "2024-09-27T20:19:25Z")

</div>

**Zoom Apps Configuration**

- Windows Zoom Client version 6.2.2 (47417)
- Zoom App SDK version: 0.16.22

**Description**  
Our app invitation flow stopped working sometime in the past two weeks. Digging into the issue we discovered the callback we registered using the SDK method `onSendAppInivtation` was not being called. We rely on such a method to properly share the app’s state with other participants in the Zoom meeting.

I poked around in our app and discovered the reason. The event triggered when an app invitation is sent changed names from `sendAppInvitation` as described in the official SDK documentation (look at the `addEventListener` section in the SDK docs) to `onSendAppInivitation`.

I verified this behavior by setting listeners to `sendAppInvitation` and `onSendAppInivitation` events using the `addEventListener` (SDK method. It is worth noting that the event name `onSendAppInivitation` is not mentioned anywhere in the documentation.

The `onSendAppInivitation` SDK method is broken because, under the hood, it is registering an event listener for `sendAppInvitation`. Relevant SDK code:

```auto
...
NativeEvents["ON_SEND_APP_INVITATION"] = "sendAppInvitation";
...

        ZoomSdk.prototype.onSendAppInvitation = function (handler) {
            this.addEventListener(NativeEvents.ON_SEND_APP_INVITATION, handler);
        };
...

```

I suspect the event name changed sometime in the last couple of weeks. However, it should be reverted to the expected name `sendAppInvitation`, as it is a breaking change.

**How To Reproduce**  
Test any application whose app invitation flow relies on the `onSendAppInvitation` event.

> The site prevented me from relevant links to the documentation. But you can look at the mentioned methods in the official SDK documentation.

---

<div class="post-metadata">

**Author:** ![shishir.sharma](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/shishir.sharma/32/36061_2.png) [@shishir.sharma](https://devforum.zoom.us/u/shishir.sharma)\
**Post date:** [October 24, 2024, 2:25pm UTC](https://devforum.zoom.us/t/callback-for-event-onsendappinvitation-not-benig-called/118234/2 "2024-10-24T14:25:03Z")

</div>

Thank You for reporting this @camador, This is indeed an issue. We have fixed this in client 6.2.5. For client version before that, We will have to ship an SDK update, We are working on It.
