InAppBrowser freeze app iOS

Hi, i’m using InAppBrowser to open links in the system browser. In Android it works well, when I hit the back button, it goes back to the app. But in iOS, when I hit the home button and go back to the app it’s stay frozen.

Any idea on how to solve this ?

Edit: in iOS the user have to close safari and return to the app. How to bypass this ?

Regards

If the user open a link the first time, then close safari, if he then open a second one, then go back to the app without quitting safari this time, the app doesn’t freeze.

Any idea on what could cause this ?

Hi, can you post the code that you’re using to open the link?

I’m using this, and have no problems on iOS with it:

onclick="window.open('http://www.google.com', '_system', 'location=yes'); return false;"

In the controller :

function openLink(link) {
    $cordovaInAppBrowser.open(link, '_system');
}

In app.config:

$cordovaInAppBrowserProvider.setDefaultOptions({
    location: 'no',
    clearcache: 'no',
    toolbar: 'yes'
});

Have you tried using the plugin directly (with window.open), instead of using the ngCordova wrapper?

It opens the link but there is no way to go back to the app after

Mmh apparently it’s in the iOS simulator that it crash, on a device it works great weird.