You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Shravan Narayan (JIRA)" <ji...@apache.org> on 2013/03/14 00:06:12 UTC
[jira] [Created] (CB-2672) InAppBrowser loadstarted event on iOS
returns URLS only after connecting and redirecting
Shravan Narayan created CB-2672:
-----------------------------------
Summary: 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