I have an app working just fine on iOS 9 with a Custom NSURLProtocol
implemented with NSURLSession
. All the requests executed by the client are done with NSURLSession
as well and each sessionConfiguration
is registering to the protocol before executing the request.
I have an issue with iOS 8 that I don't have with iOS 9. With iOS8 the Custom NSURLProtocol
is performing that request non stop, basically an infinite loop of the same request. canInitWithRequest:
in the custom protocol gets called way more on iOS 8 than on iOS 9 which basically drives the method startLoading
to get called and fire the request after some header modifications that my protocol is supposed to perform.
Is there a known issue with iOS8 where NSURLProtocol
s and NSURLSession
don't behave as expected?