I'm using UIWebView's shouldStartLoadWithRequest:navigationType: delegate method to intercept html links that are executed in a web page. I am doing this so that I can receive realtime notifications from the web page. However, I'm executing about 5 web page loads in quick succession to try to receive data being passed by a custom URL scheme. I'm simply trying to log them all right now so my code looks like this:
-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
NSLog(@"Received Request: %@", request);
return NO;
}
However all requests are not logged via NSLog. I have confirmed that the Requests are being sent via the OSX Safari web browser's iPhone simulator logs and they do appear there.
Is there a way for me to receive all of these requests via the shouldStartLoadWithRequest: delegate method?