# Ionic sdk fails to launch after app close on Android

**URL:** <https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144>\
**Category:** Meeting SDK\
**Created:** [April 8, 2020, 1:29pm UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144 "2020-04-08T13:29:04Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![padmaraj.m](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/padmaraj.m/32/5504_2.png) [@padmaraj.m](https://devforum.zoom.us/u/padmaraj.m)\
**Post date:** [April 8, 2020, 1:29pm UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/1 "2020-04-08T13:29:04Z")

</div>

**Description**  
I’m using `@ionic-native/zoom` in my app. First time when I launch it works fine. Second time the app freezes. It won’t work unless I force close the app. My code in app.component.js is as below:

```auto
this.zoomService.initialize(this.SDK_KEY, this.SDK_SECRET)
              .then((success) => {
                console.log(success);
                this.joinMeeting(zoomParams);
              })
              .catch((error) => {
                console.log(error);
              });

```

Little investigation shows me that the initialize method blocks the main thread and never returns. Is there anyway to re-initialize app on every restart?

**Which version?**  
5.23.0

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

1. Use the above code in app.component.js
2. build android app using `ionic cordova build android --prod --release`
3. upload to android device
4. launch app. the meeting will start.
5. leave meeting and click back to close the app. you can put this code to do this

```auto
 this.platform.backButton.subscribe(() => {
      navigator['app'].exitApp();
    });

```

1. reopen the app. You will see that app just freezes.

**Screenshots**  
If applicable, add screenshots to help explain your problem.

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

- Device: Xiomi Note 4
- OS: Android
- Version 7.0

**Additional context**  
Add any other context about the problem here.

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 9, 2020, 5:45am UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/2 "2020-04-09T05:45:43Z")

</div>

Hi [padmaraj.m](https://devforum.zoom.us/u/padmaraj.m),

Thanks for using Zoom SDK. I will forward this to the engineering team for investigation and get back to you shortly.

Thanks!

---

<div class="post-metadata">

**Author:** ![bhamra](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bhamra/32/3113_2.png) [@bhamra](https://devforum.zoom.us/u/bhamra)\
**Post date:** [April 12, 2020, 2:19pm UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/3 "2020-04-12T14:19:43Z")

</div>

I am also getting the same issue. when we open the app first time everything works fine. if we exit the app then reopen it app just freeze.  
We have to force close it then it opens again

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 14, 2020, 4:50am UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/4 "2020-04-14T04:50:29Z")

</div>

Hi,

Thanks for the post. Could you provide the SDK log so that we could further investigate this issue? The log could be find in: `/Android/data/(or your app's name)/logs/`

Thanks!

---

<div class="post-metadata">

**Author:** ![abhi0476](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abhi0476/32/6453_2.png) [@abhi0476](https://devforum.zoom.us/u/abhi0476)\
**Post date:** [April 18, 2020, 10:48pm UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/5 "2020-04-18T22:48:18Z")

</div>

I am too facing the exact same issue. Please fix this on priority

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [April 21, 2020, 5:39am UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/6 "2020-04-21T05:39:28Z")

</div>

Hi [abhi0476](https://devforum.zoom.us/u/abhi0476),

Thanks for the reply. The Ionic SDK is a community project so we have limited bandwidth on this. I will forward this to the engineering team to prioritize this.

Thanks!

---

<div class="post-metadata">

**Author:** ![bhamra](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/bhamra/32/3113_2.png) [@bhamra](https://devforum.zoom.us/u/bhamra)\
**Post date:** [May 12, 2020, 7:27am UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/7 "2020-05-12T07:27:59Z")

</div>

Hi Carson\_chen

Is there any update on this issue?

waiting for your revert.

Thanks

---

<div class="post-metadata">

**Author:** ![carson.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/carson.zoom/32/785_2.png) [@carson.zoom](https://devforum.zoom.us/u/carson.zoom)\
**Post date:** [May 13, 2020, 8:54am UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/8 "2020-05-13T08:54:24Z")

</div>

Hi [bhamra](https://devforum.zoom.us/u/bhamra),

Thanks for the reply. This issue has been fixed in the latest release: [https://github.com/zoom/zoom-sdk-ionic/releases/tag/v4.6.21666.0512](https://github.com/zoom/zoom-sdk-ionic/releases/tag/v4.6.21666.0512)

Thanks!

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 9:17pm UTC](https://devforum.zoom.us/t/ionic-sdk-fails-to-launch-after-app-close-on-android/12144/9 "2020-08-21T21:17:27Z")

</div>

Closed on August 21, 2020, 9:17pm UTC


