# Does anyone have an existing setup to fallback audio on ios devices?

**URL:** <https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127>\
**Category:** Web\
**Created:** [June 23, 2020, 12:20pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127 "2020-06-23T12:20:10Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evanatzend](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evanatzend/32/11199_2.png) [@Evanatzend](https://devforum.zoom.us/u/Evanatzend)\
**Post date:** [June 23, 2020, 12:20pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/1 "2020-06-23T12:20:10Z")

</div>

Im looking into using agora as a audio alternative on ios devices and id like to know if anyone else has something they are using.

---

<div class="post-metadata">

**Author:** ![Evanatzend](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evanatzend/32/11199_2.png) [@Evanatzend](https://devforum.zoom.us/u/Evanatzend)\
**Post date:** [June 23, 2020, 1:53pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/2 "2020-06-23T13:53:17Z")

</div>

ok something interesting when i try using web sdk in chrome on IOS it only gets to the first line then stops.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 24, 2020, 9:24pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/3 "2020-06-24T21:24:24Z")

</div>

Hey @Evanatzend,

> [@Evanatzend](#):
>
> when i try using web sdk in chrome on IOS it only gets to the first line then stops.

Can you elaborate on this more?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Evanatzend](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evanatzend/32/11199_2.png) [@Evanatzend](https://devforum.zoom.us/u/Evanatzend)\
**Post date:** [June 28, 2020, 5:17pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/4 "2020-06-28T17:17:51Z")

</div>

ok so here is my code using CDN @tommy

> **here**
>
> ```
> const xhr = new XMLHttpRequest();
> 
> xhr.open("GET",'credentials.php');
> 
>     
> 
> xhr.onload=()=>{
> 
> var input =JSON.parse(xhr.response);
> 
>     
> //it stops at this line here 
> console.log('checkSystemRequirements');
> 
> console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));
> 
> ZoomMtg.preLoadWasm();
> 
> ZoomMtg.prepareJssdk();
> 
>     
> 
> /**
> 
> * NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING
> 
> * The below generateSignature should be done server side as not to expose your api secret in public
> 
> * You can find an eaxmple in here: https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature
> 
> */
> 
> var usrnme = input.username;
> 
> var email = input.useremail;
> 
> var API_SECRET = input.API_SECRET;
> 
> var API_KEY = input.API_KEY;
> 
> var meetingNumber = parseInt(input.meetingNumber);
> 
> var currentSite = "";
> 
> console.log(input);
> 
> var meetConfig = {
> 
> apiKey: API_KEY,
> 
> apiSecret: API_SECRET,
> 
> meetingNumber: meetingNumber,
> 
> userName: usrnme,
> 
> userEmail: email,
> 
> passWord: input.passWord,
> 
> leaveUrl: currentSite,
> 
> role: 0
> 
> };
> 
> console.log(meetConfig);
> 
> testTool.setCookie("meeting_number", meetConfig.meetingNumber);
> 
> testTool.setCookie("meeting_pwd", meetConfig.passWord);
> 
>         
> 
> var data ={
> 
> meetingNumber: meetConfig.meetingNumber,
> 
> apiKey: meetConfig.apiKey,
> 
> apiSecret: meetConfig.apiSecret,
> 
> role: 0
> 
> }
> 
> getSignature =()=>{
> 
> xhr.open('POST','/');
> 
> xhr.setRequestHeader("Content-Type", "application/json");
> 
> xhr.send(JSON.stringify(data));
> 
> xhr.onload=()=>{
> 
> alert(xhr.response);
> 
> }
> 
> }
> 
> ZoomMtg.init({
> 
> leaveUrl: currentSite,
> 
> success: function () {
> 
> ZoomMtg.join(
> 
> {
> 
> meetingNumber:meetConfig.meetingNumber,
> 
> userName: meetConfig.userName,
> 
> signature: signature,
> 
> userEmail: meetConfig.userEmail,
> 
> apiKey: meetConfig.apiKey,
> 
> passWord: meetConfig.passWord,
> 
> success: function(res){
> 
> $('#nav-tool').hide();
> 
> console.log('join meeting success');
> 
> console.log(res);
> 
> },
> 
> error: function(res) {
> 
> console.log(res);
> 
> }
> 
> }
> 
> );
> 
> },
> 
> error: function(res) {
> 
> console.log(res);
> 
> }
> 
> });
> 
> }
> 
> xhr.send();
> 
> ```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 29, 2020, 7:44pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/5 "2020-06-29T19:44:22Z")

</div>

Hey @Evanatzend,

If the code stops running before it reaches the Web SDK then the issue is with your code.

Are there any errors thrown in the browser console?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![Evanatzend](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/evanatzend/32/11199_2.png) [@Evanatzend](https://devforum.zoom.us/u/Evanatzend)\
**Post date:** [June 29, 2020, 10:58pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/6 "2020-06-29T22:58:40Z")

</div>

No errors which is baffling, code works fine on android chrome and the issue on iOS is confounding to say the least.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 30, 2020, 8:40pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/7 "2020-06-30T20:40:42Z")

</div>

Hey @Evanatzend,

Can you try removing this line:

```auto
console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

```

Let me know if that fixes it.

Thanks,  
Tommy

---

<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, 10:31pm UTC](https://devforum.zoom.us/t/does-anyone-have-an-existing-setup-to-fallback-audio-on-ios-devices/22127/8 "2020-08-21T22:31:01Z")

</div>

Closed on August 21, 2020, 10:31pm UTC


