Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Silviu_A_
Beginner
39 Views

Popup window/tab not closing

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?

Tags (2)
0 Kudos
2 Replies
Dale_S_Intel
Employee
39 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

 

Silviu_A_
Beginner
39 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.

Reply