InAppBrowser freeze app iOS


#1

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


#2

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 ?


#3

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;"

#4

In the controller :

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

In app.config:

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

#5

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


#6

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


#7

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