How to generate JWT token using JWT App in android studio

Hi,
I am using Zoom Android Meeting SDK, I have created JWT App and able to start meeting and join meeting but not able to schedule meeting in new android SDK. I need to generate JWT token for my app through code to call Zoom API to schedule meeting. Please help me out to generate JWT Token with JWT App in android.

Thank you
Megha

Hey @Megha1,

Thank you for reaching out to the Zoom Developer Forum. When using the Android SDK, please make sure that you create an SDK App to access your credentials instead of a JWT App.

You can learn more here:

I hope that helps! Let me know if you have any questions.

Thanks,
Max

Hi @MaxM,

Thanks for reply!
We need to authorize the OAuth app to install and get ZAK of user. Can I authorize OAuth app using android webview and get a ZAK for a user?

Thank you
Megha

Hey @Megha1,

Yes, you should be able to redirect a user to the authorization URL using a WebView on Android.

Thanks,
Max

Hey @MaxM,

I am using https://zoom.us/oauth/authorize url in android webview to login and authorize user in app. User is able to login and authorize the app and I am getting code also in query parameter but when Backend is requesting for user ZAK https://zoom.us/oauth/token with this API, it is sending 403 error. Our web application is also doing same and backend is also getting User’s ZAK but when backend request for ZAK with code I am getting after authorization in query parameter , it gives error but this works properly in Web. I am redirecting to the same url which is using in Web application and Client Id is also same. We are facing problems from last many days. Please share documentation If there is to use android webview to authorize users or any other way to guide in this situation.

Please help us out from following situation as soon as possible as we need to deploy latest changes also.

Thank you
Megha

Hey @Megha,

Thanks for following up on this. If you’re running into issues using the WebView, I would expect there is a detail there we’re missing in regard to how it operates. I would try opening the user’s browser directly in that case and they should be able to complete the authorization process before redirecting back to your application.

Thanks,
Max

Hey @MaxM,

Thanks for reply! As you mention to open user’s browsers but I am a kind of thing in web view also, I am using https://marketplace.zoom.us/docs/guides/auth/oauth steps to authorize and I am getting code in query parameter also in redirect_uri after user authorization. but in step 2 when I am sending POST request to https://zoom.us/oauth/token, I am getting 403 error code.
Thats why I woud like to ask what is wrong with the code as it is sending 403.

Thank you,
Megha

Hey @Megha1,

I’m happy to look further into this to see if we can determine the cause of the 403 error that you’re seeing. Please submit a ticket and include a link to this thread. You can submit a ticket by navigating to our Developer Support Center.

In that email, please also include the POST request that you’re making when you see this error. I’ll use that to investigate further.

Thanks,
Max