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

jcesarmobile commented on CB-10698:
-----------------------------------

I was looking into CB-11136 and remembered this one because it's similar.

I can reproduce CB-11136, but not this one, I have a sample app with 
cordova-plugin-inappbrowser and cordova-plugin-wkwebview-engine and I'm using 
this code:

{code}
function openInApp() {
                var ref = cordova.InAppBrowser.open('http://www.google.es', 
'_blank', 'location=yes');
                ref.addEventListener('loadstart', function(event) { 
console.log("start "+event.url); });
                ref.addEventListener('loadstop', function(event) { 
console.log("stop "+event.url); });
                ref.addEventListener('exit', function(event) { 
console.log("exit"); });
}
{code}

loadstart is called everytime, the first time when it loads google page, and 
everytime I search and when I navigate to a search result.

loadstop is the one that is hanging as explained on CB-11136



> loadstart on ios is not being sent in wkwebview
> -----------------------------------------------
>
>                 Key: CB-10698
>                 URL: https://issues.apache.org/jira/browse/CB-10698
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser, Plugin WKWebViewEngine
>    Affects Versions: 6.0.0
>         Environment: ios
>            Reporter: Marc Luria
>            Assignee: Shazron Abdullah
>              Labels: ios, triaged
>
> In my app, I depend on the loadstart event during twitter login.  This works 
> fine without wkwebview, but once I add this component, it stops working.  
> I see an loadstart on the initial load, but after that, they stop coming.  
> I tried this with console.log and with breakpoints in the debugger, but I was 
> concerned that the loadstart was being missed, so I sent the messages to my 
> server and logged them there.  It still didn't work.
> The web pages load, during the twitter logon process, including a final page 
> on my site, but no loadstart  (or loadstop or loaderror).  When I hit the 
> done button, I get a loadstart for the last page that was visiting, but this 
> is not really acceptable.
> In the worst case, is there a workaround for this?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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

Reply via email to