From 8c9683948020a742ea040f9cad3560d88f333440 Mon Sep 17 00:00:00 2001 From: Dani Palou Date: Tue, 6 Aug 2024 14:24:48 +0200 Subject: [PATCH] MOBILE-4602 core: Remove problematic close when reopening IAB Opening a new IAB when one is already open doesn't create a second one, only one is present so there's no need to close the previous one. Also, calling close() caused the new IAB to close immediately because the app doesn't wait for the previous one to finish closing. --- src/core/services/utils/utils.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/services/utils/utils.ts b/src/core/services/utils/utils.ts index 0c1724eaf..9a18d59a7 100644 --- a/src/core/services/utils/utils.ts +++ b/src/core/services/utils/utils.ts @@ -1068,8 +1068,6 @@ export class CoreUtilsProvider { this.setInAppBrowserToolbarColors(options); - this.iabInstance?.close(); // Close window if there is one already open, only allow one. - this.iabInstance = InAppBrowser.create(url, '_blank', options); if (CorePlatform.isMobile()) {