kCFStreamNetworkServiceTypeVoIP is deprecated in iOS 9 warning
Hi,
I notice when compiling this in my code that I'm getting a warning that the above constant is deprecated in iOS 9. Would anyone happen to have code which uses PushKit in place of this, as the warning suggests?
Hello,
Solved by @pengyanb https://github.com/robbiehanson/CocoaAsyncSocket/issues/361
Add #import to GCDAsyncSocket.m
#import <PushKit/PushKit.h>Replace in enableBackgroundingOnSocketWithCaveat
r1 = CFReadStreamSetProperty(readStream, kCFStreamNetworkServiceType, PKPushTypeVoIP); r2 = CFWriteStreamSetProperty(writeStream, kCFStreamNetworkServiceType, PKPushTypeVoIP);
This issue has been marked as stale, it will be closed automatically if there is no further activity.