You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/01/28 19:50:57 UTC

[GitHub] [cordova-plugin-inappbrowser] JohnathanWhite opened a new issue #617: Managing multiple instances of In App Browser

JohnathanWhite opened a new issue #617: Managing multiple instances of In App Browser
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/617
 
 
   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 ??
   ```
   
   The behavior that I am looking for is that ref1 would persist and not be tied to ref2. Is this possible? 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org