# Get "unknown error" when trying to login in iOS simulator

**URL:** <https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988>\
**Category:** iOS\
**Created:** [September 3, 2020, 5:57am UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988 "2020-09-03T05:57:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![gjudd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gjudd/32/14609_2.png) [@gjudd](https://devforum.zoom.us/u/gjudd)\
**Post date:** [September 3, 2020, 5:57am UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988/1 "2020-09-03T05:57:25Z")

</div>

**Description**  
I’m using the ionic plugin. It is working more or less OK on a device. I switched my code to use the simulator MobileRTC framework. I am using the startInstantMeeting method to start the meeting.

The result is, it will hit onMeetingError: with error=MobileRTCMeetError\_Unknown and message=“the meeting has problem. (Error code 5003)”

**Which version?**  
[v4.6.21666.0603](https://github.com/zoom/zoom-sdk-ionic/commit/6c8915917961d2d9c867f8d24267ba3c25e20e3c)

**To Reproduce(If applicable)**  
Steps to reproduce the behavior:

1. Call startInstantMeeting having successfully initialized with valid API key and shared secret, and logged in with userid and password

**Screenshots**

![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/3993147599f83663b970586cd4b19e16d632e277.jpeg)

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

- Device: iPad Pro (9.7 inch)
- OS: 14 (beta 6)

---

<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:** [September 3, 2020, 6:49pm UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988/2 "2020-09-03T18:49:19Z")

</div>

Hey @gjudd

Thanks for using the dev forum!

Error code 5003 represents a pre-meeting timeout. There are a couple things that could’ve caused this to happen so let’s troubleshoot 🙂 .

First, that is a good sign that the SDK initialized successfully. When you logged in with the userID and password, was onLoginReturn called? If so, was that also successful? Instant meetings must wait for the log in to reflect on Zoom’s backend before being called, is it possible the start instant instant meeting is called before the log in is completed?

Lastly, are you able to join meetings? To test this, start a Zoom meeting on your computer, or mobile device, obtain the meeting number and password, then in your ionic app call:

```auto
joinMeeting(meetingNumber, meetingPassword, displayName, options)

```

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![gjudd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gjudd/32/14609_2.png) [@gjudd](https://devforum.zoom.us/u/gjudd)\
**Post date:** [September 3, 2020, 7:20pm UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988/3 "2020-09-03T19:20:53Z")

</div>

> When you logged in with the userID and password, was onLoginReturn called?

Yes onMobileRTCLoginReturn: is called with 0 for the return value

> Lastly, are you able to join meetings? To test this, start a Zoom meeting on your computer, or mobile device, obtain the meeting number and password, then in your ionic app call:

On trying this, I get “success” for the joinMeeting call (and onMeetingError is called with “success”). The iPad is then “stuck” at this point:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/762d638b806024fd43e766379bc6e7ff4b3282cd.png)

On the computer (the host) I have admitted the iPad user which is joining, and it is “stuck” with the iPad user at the “Joining” stage in the waiting room. I would attach a screenshot, but the forum software did not allow me to.

The iPad does not successfully get into the meeting.

Just to reiterate, this is only happening on simulator. The same functionality is working OK on a real device.

---

<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:** [September 4, 2020, 8:53pm UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988/4 "2020-09-04T20:53:12Z")

</div>

Hey @gjudd

Im sorry that this is happening. That must be very frustrating.

The simulator version of the framework does indeed have different limitations compared to the device version. Can you provide the SDK logs so that we can investigate this issue?

Instructions for obtaining the SDK logs can be found here: [https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization](https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization)

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![gjudd](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gjudd/32/14609_2.png) [@gjudd](https://devforum.zoom.us/u/gjudd)\
**Post date:** [September 6, 2020, 9:27pm UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988/5 "2020-09-06T21:27:41Z")

</div>

Hello,

I have attached logs for the “start instant meeting” and “join existing meeting” case here:

[https://redidirect-my.sharepoint.com/:f:/g/personal/gjudd\_stayinfront\_com/Eji8-WIaTkNMglJ3kw3UP0oBR5Qa5Tz\_Qtlqz3qxAh283w?e=boVOwd](https://redidirect-my.sharepoint.com/:f:/g/personal/gjudd_stayinfront_com/Eji8-WIaTkNMglJ3kw3UP0oBR5Qa5Tz_Qtlqz3qxAh283w?e=boVOwd)

Thanks for your assistance,

Gwyn

---

<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:** [September 8, 2020, 11:53pm UTC](https://devforum.zoom.us/t/get-unknown-error-when-trying-to-login-in-ios-simulator/28988/6 "2020-09-08T23:53:10Z")

</div>

Thanks @gjudd!  
I will let the team know.  
Michael
