Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229646

Ionic app activity suspended when InAppBrowser is opened

$
0
0

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?


Viewing all articles
Browse latest Browse all 229646

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>