# Chat messages are not sent from iOS Meeting SDK

**URL:** <https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870>\
**Category:** iOS\
**Created:** [January 19, 2022, 9:36am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870 "2022-01-19T09:36:26Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 19, 2022, 9:36am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/1 "2022-01-19T09:36:26Z")

</div>

**Description**  
I can send messages directly in the chat UI. However, if I send messages by using the SDK’s function, the messages are only displayed on the current device, other participants don’t see them.

**Which iOS Meeting SDK version?**  
5.7.1.

**To Reproduce(If applicable)**

```auto
MobileRTCMeetingService *meetService = [[MobileRTC sharedRTC] getMeetingService];
    if (meetService) {
        MobileRTCSendChatError error = [meetService sendChatToGroup:MobileRTCChatGroup_All WithContent:message];
        return @(error == MobileRTCSendChatError_Successed);
    }
    return @(NO);

```

**Smartphone (please complete the following information):**

- Device: iOS Simulator - iPhone 13 Pro Max
- OS: iOS 15.2

**Additional context**  
The issue doesn’t happen on Android Meeting SDK.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 19, 2022, 5:49pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/2 "2022-01-19T17:49:42Z")

</div>

Hi @noob, thanks for the post.

Can you please try updating to the latest version of the SDK and checking if it’s still reproducible?

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 20, 2022, 2:59am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/3 "2022-01-20T02:59:40Z")

</div>

Thanks for replying.

I’ve updated to version 5.9.1 (2191) and the issue still occurred.

Screenshot: [https://paste.pics/FPHLV](https://paste.pics/FPHLV) (I cannot attach media files so I uploaded it to another site).

The message “Sent from SDK” is generated by the following code:

```auto
MobileRTCMeetingService *meetService = [[MobileRTC sharedRTC] getMeetingService];
   
    if (meetService) {
        MobileRTCSendChatError error = [meetService sendChatToGroup:MobileRTCChatGroup_All WithContent:@"Sent from SDK"];
        return @(error == MobileRTCSendChatError_Successed);
    }
    return @(NO);

```

The message “Hello” was input manually from the chat UI.

Result: “Hello” was delivered (other attendees can see it), while “Sent from SDK” was not.  
Tested on an iPhone 6 iOS 13.6 and got the same issue.

FYI, here’s how I init the SDK and start a meeting:

```auto
    MobileRTCSDKInitContext *context = [[MobileRTCSDKInitContext alloc] init];
    context.domain = @"https://zoom.us";
    context.enableLog = YES;
    context.appGroupId = appGroupId;
    BOOL sdkInitSuc = [[MobileRTC sharedRTC] initialize:context];
    if (sdkInitSuc) {
        [[MobileRTC sharedRTC] setLanguage:@"en"];
        MobileRTCAuthService *authService = [[MobileRTC sharedRTC] getAuthService];
        
        if (authService) {
            authService.clientKey = sdkKey;
            authService.clientSecret = sdkSecret;
            authService.delegate = self;
            [authService sdkAuth];    
        }
    }
...

```

Start meeting with API user:

```auto
    MobileRTCMeetingService *meetService = [[MobileRTC sharedRTC] getMeetingService];
    if (meetService) {
        meetService.delegate = self;
        dispatch_async(dispatch_get_main_queue(), ^{
            MobileRTCMeetingStartParam4WithoutLoginUser * user = [[MobileRTCMeetingStartParam4WithoutLoginUser alloc] init];
            user.userType = MobileRTCUserType_APIUser;
            user.meetingNumber = meetingNumber;
            user.userName = userName;
            user.zak = token;
            user.userID = userId;
            MobileRTCMeetError error = [meetService startMeetingWithStartParam:user];
        });
...

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 20, 2022, 8:04pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/4 "2022-01-20T20:04:54Z")

</div>

Hi @noob,

Thanks for the additional information. Can you please confirm what the return value of the `sendChatToGroup` method is when this issue is present? Also, at what point are you trying to send the chat message programmatically?

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 21, 2022, 1:46am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/5 "2022-01-21T01:46:58Z")

</div>

Hi @jon.zoom ,

For the sake of testing, I added a button into `meetService.meetingView`. When user taps the button, the code `sendChatToGroup` is invoked.

To log the return value of `sendChatToGroup`:

```auto
MobileRTCSendChatError error = [meetService sendChatToGroup:MobileRTCChatGroup_All WithContent:@"Sent from SDK"];
NSLog(@"[Zoom] sendChatToGroup error: %lu", (unsigned long)error);

```

console:

```auto
[Zoom] sendChatToGroup error: 0

```

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 21, 2022, 5:59pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/6 "2022-01-21T17:59:55Z")

</div>

Hi @noob,

Thanks for checking that. The return value you are seeing is `MobileRTCSendChatError_Successed`, so the SDK should attempt to send the message. Can you also check that the value of [`getAttendeeChatPriviledge`](https://marketplacefront.zoom.us/sdk/meeting/ios/category_mobile_r_t_c_meeting_service_07_chat_08.html#ae73fdda799d5dffb101bd5f7316547fd) is?

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 22, 2022, 8:52am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/7 "2022-01-22T08:52:26Z")

</div>

Hi @jon.zoom ,

The result of

```auto
MobileRTCMeetingChatPriviledgeType chatPriv = [meetService getAttendeeChatPriviledge];

```

is:  
`MobileRTCMeetingChatPriviledge_Everyone_Publicly_And_Privately`

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 24, 2022, 7:47pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/8 "2022-01-24T19:47:28Z")

</div>

Hi @noob,

Thanks for confirming that. With that setting, there shouldn’t be anything preventing anyone in the meeting from sending messages. Can you please provide the encrypted SDK logs so that we can look into this further? There are instructions on how to obtain logs [here](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization#log-feature).

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 25, 2022, 2:56am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/9 "2022-01-25T02:56:05Z")

</div>

Hi @jon.zoom, here are the logs: [Google Drive](https://drive.google.com/file/d/1XhIvrzKw1sZ8hyNrgQXxdt9y8eDVUEfI/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 25, 2022, 7:01pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/10 "2022-01-25T19:01:28Z")

</div>

Hi @noob,

Thanks for that! I’m seeing several log files in there. Can you please confirm which one is from a session in which this issue was present?

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 26, 2022, 1:04am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/11 "2022-01-26T01:04:16Z")

</div>

Hi @jon.zoom Please check the latest one.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 26, 2022, 7:21pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/12 "2022-01-26T19:21:26Z")

</div>

Hi @noob,

There are still several files in the link you’ve provided. In order to investigate the logs, we need to know which file was generated in a session where your issue was reproduced.

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [January 27, 2022, 7:27am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/13 "2022-01-27T07:27:24Z")

</div>

Hi, I’m getting “Sorry you cannot post a link to that host”. Looks like I’m not allowed to post links any more. Is there anyway that I can send the file to you?  
Sorry for the inconvenience.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [January 27, 2022, 11:37pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/14 "2022-01-27T23:37:29Z")

</div>

Hi @noob,

No problem at all! The best alternative would be to submit the information through a ticket on our [developer support site](https://zoomdevelopersupport.zendesk.com/hc/en-us).

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [February 6, 2022, 12:22pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/15 "2022-02-06T12:22:33Z")

</div>

Hi @jon.zoom that developer support site always displays the “Sign In” button: when I click it I’m moved to the profile page → back to the support site → the Sign In button is always displayed. Hence I cannot submit anything. Tried on Chrome and Safari on macOS Big Sur. May I ask for a sample iOS project that the chat messages actually work?

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 7, 2022, 8:11pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/16 "2022-02-07T20:11:59Z")

</div>

Hi @noob,

Sorry that you are running into issues with submitting a ticket on the developer support site. Can you try clearing your browser’s cache and see if that makes a difference? I also noticed that our system incorrectly flagged a couple of your replies, which may have been preventing you from posting links. Those flags have been cleared, so you may be able to post now if the support site still is not working.

> May I ask for a sample iOS project that the chat messages actually work?

I’ve tested the sample app included with the SDK and am able to send chat messages programmatically. Since you are seeing different behavior, we’ll need those logs to determine what is different on your end.

Thanks!

---

<div class="post-metadata">

**Author:** ![noob](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/noob/32/34937_2.png) [@noob](https://devforum.zoom.us/u/noob)\
**Post date:** [February 8, 2022, 9:01am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/17 "2022-02-08T09:01:54Z")

</div>

Hi @jon.zoom Thank you for your patience. Here is the latest log: [Google Drive](https://drive.google.com/file/d/13Wp9nM3K5N4OFuAluWk8iKNQDZIVqsY7/view?usp=sharing)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [February 9, 2022, 1:58am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/18 "2022-02-09T01:58:51Z")

</div>

Hi @noob,

Thank you and absolutely no problem! We’ll investigate the logs and let you know as soon as we have any new information.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [March 11, 2022, 11:59am UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/19 "2022-03-11T11:59:39Z")

</div>

Closed on March 11, 2022, 11:59am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [May 17, 2022, 8:36pm UTC](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870/20 "2022-05-17T20:36:47Z")

</div>

Opened on May 17, 2022, 8:36pm UTC



[Next page](https://devforum.zoom.us/t/chat-messages-are-not-sent-from-ios-meeting-sdk/62870.md?page=2)
