Skip to content

Managing multiple instances of In App Browser #617

@JohnathanWhite

Description

@JohnathanWhite

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions