Update: Another option is to use NSURLProtocol to listen to the requests that the application makes, including all from the web view.
I offer a creative solution. This is not what you want, but since it is currently not possible to do this using the SDK, this is the only possible solution.
@interface PrintingCache : NSURLCache { } @end @implementation PrintingCache - (NSCachedURLResponse*)cachedResponseForRequest:(NSURLRequest*)request { NSLog(@"url %@", request.URL.absoluteString); return [super cachedResponseForRequest:request]; } @end
Now in the application deletion, do the following:
NSString *path = ...
This creates a shared cache, and all of your application URL requests will go through that cache, including your webview. However, you can get more URLs from other sources that you do not need.
source share