Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.5.0
-
None
Description
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
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