问题
I have a link that opens in the
inappbrowser
and when I proceed with the webpage that is loaded in theinappbrowser
, any other link should not get opened if one link is already running ininappbrowser
.Whereas when I click other link, it loads over the previous running link and I clearly do not want that
Any help is much appreciated!
Here is the source code:
universalLinks.subscribe(null, function (eventData) {
ref = cordova.InAppBrowser.open(eventData.url, '_blank', 'location=yes');
setTimeout(function () {
ref.close();
}, 320000);
});
来源:https://stackoverflow.com/questions/58802056/how-to-run-only-one-instance-of-cordova-inappbrowser-in-android