How to run only one instance of cordova inappbrowser in android

倖福魔咒の 提交于 2020-01-22 02:35:23

问题


  • I have a link that opens in the inappbrowser and when I proceed with the webpage that is loaded in the inappbrowser , any other link should not get opened if one link is already running in inappbrowser.

  • 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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!