I'm trying to catch outgoing ajax calls in order to change the request by adding client certificate to it.
It seems that it can be done by subclassing NSURLProtocol. In Phonegap there is already a subclass called CDVURLProtocol.
The canInitWithRequest method is called, however startLoading method in which the request changes can be implemented is not called.
Any ideas ?
Thanks in advance,
According to UIWebViewDelegate not monitoring XMLHttpRequest?:
"UIWebViewDelegate does not monitor requests made by using a XMLHttpRequest"