cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

Managing multiple instances of In App Browser

Open JohnathanWhite opened this issue 5 years ago • 3 comments

Hey there! Is it possible to have two instances of the in app browser alive at the same time? I have a situation where I need to keep an instance alive and summon it at different times. I am just using show and hide as needed. However, in addition to this long living instance, I also need to have short lived instances that can be created and destroyed. For these instances I am calling show and close. The issue that I am experiencing is that when i close the second instance, the first long living instance gets destroyed as well. In code it looks something like this.

const ref1 = window.open(url, '_blank', REF1_CONFIG);
const ref2 = window.open(url, '_blank', REF2_CONFIG);

ref2.close();

ref1.show();
//error ?? Tried to show IAB after it was closed.


The behavior that I am looking for is that ref1 would persist and not be tied to ref2. Is this possible?

JohnathanWhite avatar Jan 28 '20 19:01 JohnathanWhite

confirm this is still an issue

linhtranvu avatar Nov 29 '20 12:11 linhtranvu

Any update?

teckwei1993 avatar Jul 07 '22 14:07 teckwei1993

Same problem here.

FlueschPluesch avatar Jul 27 '22 18:07 FlueschPluesch