gRPC Objective-C library now provides the option to use Apple's CFStream API (rather than TCP sockets) for networking. Using CFStream resolves a bunch of network connectivity transition issues (see the doc for more information).
CFStream integration is now in experimental state. You will need explicit opt-in to use it to get the benefits of resolving the issues above. We expect to make CFStream the default networking interface that gRPC uses when it is ready for production.
If you use gRPC following the instructions in README.md:
gRPC-ProtoRPC
with gRPC-ProtoRPC/CFStream
.grpc_cfstream=1
. This can be done either in Xcode console or by your code with setenv()
before gRPC is initialized.If your project directly depends on podspecs other than gRPC-ProtoRPC
(e.g. gRPC
or gRPC-Core
):
grpc_cfstream=1
. This can be done either in Xcode console or by your code with setenv()
before gRPC is initialized.