Dynamic init Zoom SDK

Hi, may I know if there is a method to init the SDK in a dynamic way?
If I put the key/secret/JWT token in the app, it needs to rebuild every time when the key/token are expired.
Therefore, i would like to know any dynamic init suggestions?

In order to init the SDK dynamically, i would like to know how to init the SDK every time when i open the activity?

It seems the SDK will not remove/destroy after i click the leave button. However, it seems IOS can do it.

Please advise. Thanks.

Hi shingshing6,

It is not recommended to hardcode any credentials in your app, please see our disclaimer:https://github.com/zoom/zoom-sdk-android#disclaimer

It is recommended only to use your app to consume the key/secrets or tokens, not storing or generating them. If you have a backend, you may generate your token there and pass it to your SDK app to use it.

Normally you only need to init SDK once, before you start using any of the SDK features. However, if you are using JWT token, you could set the expire time, you will need to re-auth the SDK.

Hope this helps. Thanks!

Hi Carson,

So, how to re-auth the SDK? any code reference?


Hi shingshing6,

Thanks for the reply. You could use the interface to check whether the auth has expired or not: https://zoom.github.io/zoom-sdk-android/us/zoom/sdk/ZoomSDK.html#isInitialized--; If it indicates that the auth has expired, you could just re-auth the SDK like the normal SDK authentication.