Software Archive
Read-only legacy content
17061 Discussions

Popup window/tab not closing

Silviu_A_
Beginner
227 Views

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 Kudos
2 Replies
Dale_S_Intel
Employee
227 Views

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

 

0 Kudos
Silviu_A_
Beginner
227 Views

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.

0 Kudos
Reply