# Microphone does not work on ios zoom, when a meeting starts

**URL:** <https://devforum.zoom.us/t/microphone-does-not-work-on-ios-zoom-when-a-meeting-starts/37664>\
**Category:** iOS\
**Created:** [December 4, 2020, 2:13pm UTC](https://devforum.zoom.us/t/microphone-does-not-work-on-ios-zoom-when-a-meeting-starts/37664 "2020-12-04T14:13:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucascordeiro.pord](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lucascordeiro.pord/32/19537_2.png) [@lucascordeiro.pord](https://devforum.zoom.us/u/lucascordeiro.pord)\
**Post date:** [December 4, 2020, 2:13pm UTC](https://devforum.zoom.us/t/microphone-does-not-work-on-ios-zoom-when-a-meeting-starts/37664/1 "2020-12-04T14:13:25Z")

</div>

**Description**  
The microphone is not working in both parts of the meeting. And when you click the mute button it returns the response (.audioNotConnected).  
There is no runtime error in the log.  
I need help to resolve this issue

**Screenshots**

 ![click-mic](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/5/f/5fe2c5e7e998401725877aed747611ed47a3b6f7.jpeg) when click in mic icon  
to mute and unmute this message appears.

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

- Device: [e.g. iPhone XR]
- OS: [e.g. iOS 14.2]
- Version zoom Sdk 5.0.24437.0708

**Additional context**

This code snippet below to create the service and the meeting.

if let meetingService = MobileRTC.shared().getMeetingService() {  
meetingService.customizedUImeetingDelegate = self  
meetingService.delegate = self  
meetingService.connectMyAudio(true)

```
        let params = MobileRTCMeetingJoinParam()
        
        params.meetingNumber = <meeting id>
        params.userName = <user name>
        params.zak = <zoom token>
        params.password = <password>

        let response = meetingService.joinMeeting(with: params)
        meetingService.connectMyAudio(true)

        print("Got response from start: \(response)")
    } else {}

```

And the one below to unmute and mute the mic, when you click the button.

guard let meetingService = MobileRTC.shared().getMeetingService() else { return }  
let newMuteState = !meetingService.isMyAudioMuted()  
let response = meetingService.muteMyAudio(newMuteState)  
if response == .success {  
updateMicIcon(on: !newMuteState)  
} else {  
alert(message: “Não foi possível (newMuteState ? “des” : “”)ativar o áudio”)  
}

Note: (.audioNotConnected) is the response of the meetingService.muteMyAudio (newMuteState) function.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [December 4, 2020, 11:56pm UTC](https://devforum.zoom.us/t/microphone-does-not-work-on-ios-zoom-when-a-meeting-starts/37664/2 "2020-12-04T23:56:37Z")

</div>

Hey @lucascordeiro.pord,

Thanks for using the dev forum, and thank you for providing thorough information!

That is very strange. The audio should automatically connect when you join the meeting. Can you try commenting out the “connectMyAudio” lines of code, deleting the app, and rerunning? Make sure that the microphone permissions are agreed to, (I have made that mistake before 🙂).

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![lucascordeiro.pord](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/lucascordeiro.pord/32/19537_2.png) [@lucascordeiro.pord](https://devforum.zoom.us/u/lucascordeiro.pord)\
**Post date:** [December 7, 2020, 3:35pm UTC](https://devforum.zoom.us/t/microphone-does-not-work-on-ios-zoom-when-a-meeting-starts/37664/3 "2020-12-07T15:35:00Z")

</div>

> [@Michael\_Condon](#):
>
> dio” lines of code, d

We commented line of code “connect My Audio”, we reinstalled the app and agreed the microphone permission and didn’t worked.

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [December 8, 2020, 2:50am UTC](https://devforum.zoom.us/t/microphone-does-not-work-on-ios-zoom-when-a-meeting-starts/37664/4 "2020-12-08T02:50:16Z")

</div>

Hey @lucascordeiro.pord,

What audiotype is returned from myAudioType?

```
- (MobileRTCAudioType)myAudioType
{
    MobileRTCMeetingService *ms = [[MobileRTC sharedRTC] getMeetingService];
    if (ms) {
        MobileRTCAudioType audioType = [ms myAudioType];
        return audioType;
    }
    return MobileRTCAudioType_None;
} 

```

Thanks!  
Michael
