Questions
Unable to close a window
22 days ago by Roman
Hi there
I want to use js bridge to manually open and close a window.
I'm trying this code.
setTimeout(() => {
Median.window.open('https://www.google.com', 'appbrowser');
}, 2000);
setTimeout(() => {
console.log('closed');
Median.window.close();
}, 10000);
I'm able to open a new window, but it doesn't close, I see "closed" in console and that's all.