Software Archive
Read-only legacy content
17061 Обсуждение

Popup window/tab not closing

Silviu_A_
Начинающий
498Просмотр.

I made a popup window that opens in app and closes after 3 seconds. I made it with window.open(); and Cordova In app Browser plugin cordova.InAppBrowser.open() and i'm not able to close any of these. Code is like this:

var win = cordova.InAppBrowser.open(URL, '_blank', 'location=no');
setTimeout(function(){ win.close(); }, 3000);

Also inserted the close() function into the target loaded file and still not closing.

Any help here?

0 баллов
2 Ответы
Dale_S_Intel
Сотрудник
498Просмотр.

Is this in the emulator or on a device?   I found the same problem when running in the emulator, but it worked on an android device, both in the debugger and as a built app.

I'll see what I can do about the emulator problem.

Dale

 

Silviu_A_
Начинающий
498Просмотр.

Dale Schouten (Intel) wrote:

Is this in the emulator or on a device?   I found the same problem when running in the emulator, but it worked on an android device, both in the debugger and as a built app.

I'll see what I can do about the emulator problem.

Dale

 

Thanks for the reply. Cleaned the code a bit tonight and seems to be working. Only on built app for now.

Sorry I wasted your time.

Ответить