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

Shravan Narayan commented on CB-2672:
-------------------------------------

This should get fixed when the following pull request goes through
https://github.com/apache/cordova-ios/pull/31
                
> InAppBrowser loadstarted event on iOS returns URLS only after connecting and 
> redirecting
> ----------------------------------------------------------------------------------------
>
>                 Key: CB-2672
>                 URL: https://issues.apache.org/jira/browse/CB-2672
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: iOS
>    Affects Versions: 2.5.0
>            Reporter: Shravan Narayan
>            Assignee: Shravan Narayan
>             Fix For: 2.6.0
>
>
> The loadstarted event in the inAppBrowser in iOS gets data from 
> webViewDidStartLoad in UIWebViewDelegate. This returns url's only after they 
> begin loading.  
> Eg: navigation to www.gmail.com would return 'mail.google.com' instead of 
> 'www.gmail.com' & 'mail.google.com'
> navigation to www.some-site-that-doesnt-exist.com would not return anything
> http://developer.apple.com/library/ios/#documentation/uikit/reference/UIWebViewDelegate_Protocol/Reference/Reference.html
> Correct implementation on android whose loadstarted event gets data from 
> onPageStarted. onPageStarted returns url's before they are loaded.
> http://developer.android.com/reference/android/webkit/WebViewClient.html#onPageStarted(android.webkit.WebView,
>  java.lang.String, android.graphics.Bitmap)
> Fix: use the webView:shouldStartLoadWithRequest:navigationType: to give 
> events to loadStarted

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to