0
down vote
favorite
I want to open and close an InAppBrowser programatically when the app receives some socket events.
But I noticed all events handling appears to be paused when InAppBrowser is being shown.
Therefore I can only open an InAppBrowser, but I cant close it programatically.
To prove that the app is somehow suspended, in the constructor of app.component.ts, I inserted this testing looping code:
setInterval(function(){ console.log("running"); }, 3000);
The loop paused when InAppBrowser is showing.
This problem appears to be only happening on actual device.
How should I keep a logic running when an InAppBrowser is being shown?