# Reinitialize ZoomSDK Get Stuck

**URL:** <https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254>\
**Category:** Android\
**Created:** [December 9, 2021, 11:11am UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254 "2021-12-09T11:11:09Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![nam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nam/32/51392_2.png) [@nam](https://devforum.zoom.us/u/nam)\
**Post date:** [December 9, 2021, 11:11am UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/1 "2021-12-09T11:11:09Z")

</div>

**Description**  
when I reinitialize ZoomSDK after the first failed due to wrong/expire JWT → ZoomSDKInitializeListener not call

**Which Android Meeting SDK version?**  
v5.7.6.1922

**To Reproduce(If applicable)**

val params = ZoomSDKInitParams().apply {  
jwtToken = “…”  
domain = “[https://zoom.us](https://zoom.us)”  
}  
ZoomSDK.getInstance().initialize(context, this, params)

→ call all step above (with correct JWT) again after the first failed with wrong JWT =\>\> nothing happened then

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

- OS: Android 11

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 9, 2021, 7:05pm UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/2 "2021-12-09T19:05:18Z")

</div>

Hi @nam, thanks for using our SDK.

I have not been able to reproduce this behavior. At what point are you trying to call `initialize` again?

Thanks!

---

<div class="post-metadata">

**Author:** ![nam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nam/32/51392_2.png) [@nam](https://devforum.zoom.us/u/nam)\
**Post date:** [December 10, 2021, 2:56am UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/3 "2021-12-10T02:56:26Z")

</div>

Hi @jon.zoom,  
We can reproduce this behavior in zoomSDK sample.

“onCreate()” of InitAuthSDKActivity,  
we call InitAuthSDKHelper.getInstance().initSDK(this, this); with wrong JWT

and then “onZoomSDKInitializeResult()” we can call  
InitAuthSDKHelper.getInstance().initSDKAgain(this, this) with correct JWT, but nothing happen then.

I also created a Button call “Init Again” in InitAuthSDKActivity , if the first init SDK fail, this button will show, and when we click this button, we call InitAuthSDKHelper.getInstance().initSDKAgain(this, this) → but nothing happen.

You can see some screenshot of the code + video in the drive folder

Thanks!

[https://drive.google.com/drive/folders/1nGrOSIB-DXUxk7i8pv6Uwvrcoq18wIGB?usp=sharing](https://drive.google.com/drive/folders/1nGrOSIB-DXUxk7i8pv6Uwvrcoq18wIGB?usp=sharing)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 10, 2021, 6:41pm UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/4 "2021-12-10T18:41:28Z")

</div>

Hi @nam,

Can you please provide a patch for the sample app so I can see the changes you’ve made to test this? I am still unable to reproduce and I’m not seeing anything wrong with your implementation based on those screenshots.

Thanks!

---

<div class="post-metadata">

**Author:** ![nam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nam/32/51392_2.png) [@nam](https://devforum.zoom.us/u/nam)\
**Post date:** [December 11, 2021, 4:48am UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/5 "2021-12-11T04:48:35Z")

</div>

Hi @jon.zoom ,

You can run “sample” in the link below to reproduce it.  
At firsttime, init sdk will failed due to expired JWT → you can click button “Init Again” (with correct JWT) and see nothing happen then.

Thanks!

[https://drive.google.com/drive/folders/1nGrOSIB-DXUxk7i8pv6Uwvrcoq18wIGB?usp=sharing](https://drive.google.com/drive/folders/1nGrOSIB-DXUxk7i8pv6Uwvrcoq18wIGB?usp=sharing)

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 13, 2021, 7:31pm UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/6 "2021-12-13T19:31:19Z")

</div>

Hi @nam,

Thanks for including that. I’m able to reproduce in the modified sample app you have, but I’m not seeing any significant differences in the implementation between what you have and what I was using when unable to reproduce it. We’ll need to investigate this and get back to you.

Thanks!

---

<div class="post-metadata">

**Author:** ![nam](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/nam/32/51392_2.png) [@nam](https://devforum.zoom.us/u/nam)\
**Post date:** [December 14, 2021, 3:03am UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/7 "2021-12-14T03:03:23Z")

</div>

Hi @jon.zoom,

Thank you for the investigation

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [December 14, 2021, 11:27pm UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/8 "2021-12-14T23:27:19Z")

</div>

Hi @nam,

No problem! We were also able to identify a fix for this, which should be included in a future release.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 14, 2022, 9:28am UTC](https://devforum.zoom.us/t/reinitialize-zoomsdk-get-stuck/61254/9 "2022-01-14T09:28:01Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
