[ 
https://issues.apache.org/jira/browse/CB-12973?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16288538#comment-16288538
 ] 

Jacob Weber commented on CB-12973:
----------------------------------

Here's a reproducible test case. Load this page in an inappbrowser, tap the 
background of the page a couple times, close the inappbrowser, and the app will 
freeze. I also notice that when I tap, the background of the app briefly 
becomes visible, instead of the inappbrowser's web page.

{code}
<!DOCTYPE html>
<html>
<head>
        <script type="text/javascript" 
src="https://code.jquery.com/jquery-1.8.2.min.js";></script>
        <script type="text/javascript" 
src="https://code.jquery.com/mobile/1.2.0/jquery.mobile-1.2.0.min.js";></script>
        <script type="text/javascript">
                function setFocus() {
                        document.getElementById('foo').focus();
                }
        </script>
</head>

<body onload="setFocus()">
        <form>
                <input type="text" id="foo" />
        </form>
</body>
</html>
{code}

Using this config.xml:
{code}
<?xml version='1.0' encoding='utf-8'?>
<widget id="com.test.cordovatest" version="1.0.0" 
xmlns="http://www.w3.org/ns/widgets"; 
xmlns:cdv="http://cordova.apache.org/ns/1.0";>
    <name>test</name>
    <content src="index.html" />
    <engine name="ios" spec="4.4.0" />
    <plugin name="cordova-plugin-inappbrowser" spec="1.7.2" />
    <plugin name="cordova-plugin-whitelist" spec="1.3.2" />
</widget>
{code}


> inAppBrowser (_blank) returns to unresponsive app after "done" on iOS 10.
> -------------------------------------------------------------------------
>
>                 Key: CB-12973
>                 URL: https://issues.apache.org/jira/browse/CB-12973
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-plugin-inappbrowser
>         Environment: cordova -v
> 7.0.1
> Installed platforms:
>   android 6.2.3
>   ios 4.1.1
> ╰─➤  cordova plugins
> cordova-plugin-badge 0.8.0 "Badges"
> cordova-plugin-console 1.0.5 "Console"
> cordova-plugin-device 1.1.4 "Device"
> cordova-plugin-inappbrowser 1.7.1 "InAppBrowser"
> cordova-plugin-splashscreen 4.0.3 "Splashscreen"
> cordova-plugin-statusbar 2.2.1 "StatusBar"
> cordova-plugin-whitelist 1.3.1 "Whitelist"
> ionic-plugin-keyboard 2.2.1 "Keyboard"
>            Reporter: Charles Palmer
>            Priority: Critical
>
> Same app works on iOS 9 and Android. Also works on _system with Safari 
> browser.
> Use case. I create a simplified test case with a touch button to invoke code 
> (I have tried many workarounds without change of behavior)  The fundamental 
> code is:
> ----
>     var options = {
>       location: 'yes',
>       clearcache: 'yes',
>       toolbar: 'yes'
>     };
>       IABRef = 
> cordova.InAppBrowser.open(encodeURI('https://conconn-staging.herokuapp.com'), 
> '_blank', options);
>  
>       IABRef.addEventListener('exit', iabClose);
> ----
> I can enter the browser. If I hit "done" immediately, I return successfully 
> and can use the button to reinvoke the browser. However if I interact with 
> the browser content, there is about a 90%+ that upon exit ("done") to the 
> app, the app will not be responsive.. It should be noted that the exit 
> listener does activate, but I have not found a way to reactivate the 
> application's response.
> I suspect that there is an interaction at the interface between InAppBrowser 
> and the Apple Library for iOS 10, but this is speculation. As I said this 
> work with iOS 9 and fails in iOS 10. This can be simulated . (Xcode 8.3.3)  
> and observed on hardware.
> I believe there are multiple people facing this issue. Happy to provide more 
> information or collaborate if appropriate.
> I would be happy with a reliable work around or patch. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to