Description
After downloading the Zoom Instant SDK sample app, configuring the provisioning profiles, and setting up a JWT, I am unable to access a room.
I launch the app, go to create a session, enter the same room name used in the JWT, and click create. I see the camera work for a second, but then I am immediately kicked out with errors 16 and 2003 printed to the console.
Looking into those in the documentation was not particularly revealing, basically just “try again” or “double check inputs”
Which version?
v5.4.54520.1229, maybe? Whichever version was downloaded today from the marketplace.
Smartphone (please complete the following information):
iPhone XS
iOS 14.3
I am sorry this is happening. However, with some troubleshooting, I think we can get you going with the sample app
My first suspicion is that there is an issue with the JWT. The documentation looks to have a typo in the payload example. There should be no quotes around the value for the exp key. Also, please verify that the times are in epoch format.
Here is an example payload that I just used that worked:
{
“app_key”: “myappkeyhere”,
“version”: 1,
“user_identity”: “michael”,
“iat”: 1610643975,
“exp”: 1610730374,
“tpc”: “test”
}
Also, if you used jwt.io, please make sure you left “secret base64 encoded unchecked”.
One other thing to check is that you have provided a domain in the appdelegate.h. I use “zoom.us” for this field.
That is interesting. Just to make sure we have all the info possible:
Are you using a password when joining?
Can you confirm that “test” is lowercase and with no space appended to it before you click “create”? (I have made this mistake before since the iOS keyboard automatically changes words sometimes)
You are not using a client SDK Key or API key correct?
In regards to the beard, don’t apologize; if anything, I am impressed.
I am not seeing anything you are doing that looks incorrect.
To be double-sure, you are using the traditional quotes in the JWT payload and not “” right?
You didn’t modify any of the code within the sample app, besides adding the domain and JWT?
Was your SDK Key issued today?
SDK Key was issued a couple of days ago, when a coworker downloaded the SDK and sample app.
JWT.io didn’t complain about my quotes, so I’m pretty sure they’re “”
No modifications were made besides changing the value of the JWT inside of the quotation marks for kAppToken. As this is a dummy app with no market value I’m just going to post that here:
Oh I see! Yes, dont copy it from the “Share JWT” button copy the actual text from the debugger screen. There should not be a “https://jwt.io/#debugger-io?token=” or anything like that.
Awesome! I am so glad that worked! I understand, there should definitely be a clearer error from the SDK. I wouldnt be too hard on yourself JWT’s are super finicky.