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:
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:
- Use the above code in app.component.js
- build android app using
ionic cordova build android --prod --release
- upload to android device
- launch app. the meeting will start.
- leave meeting and click back to close the app. you can put this code to do this
this.platform.backButton.subscribe(() => {
navigator['app'].exitApp();
});
- 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.