apollo-ios: HTTPNetworkTransport still using completion handler blocks

The latest release (0.15.0) introduced the ability to use a URLSession instead of a URLSessionConfiguration, this allows using a background session on the HTTPNetworkTransport.

However, HTTPNetworkTransport is still using completion handler blocks, which are not supported in a background session, instead of using a delegate for that.

Do you have any plans to change this behavior so HTTPNetworkTransport is always using a delegate instead of completion handler blocks?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (11 by maintainers)

Most upvoted comments

👋 any update on this?

This is great, now the only thing missing is a pure Apollo solution for those of us who can’t afford to import Alamofire as a dependency. I am aware of the suggestion to submit a PR for that but I don’t know if I will be able to get around to it (or even if I do, not sure it will be the best solution as I am not familiar with Apollo’s source code)

TWIMC, I’ve just released ApolloAlamofire 0.6.0, which is updated for Apollo 0.19.0 and allows using an Alamofire delegate for the Apollo transport.