one more question, The extension uses CFStream to establish a TCP connection with the server, primarily for receiving real-time notifications. To keep the connection stable, it sends a keep-alive packet every second.
Since .voIP is deprecated, which StreamNetworkServiceTypeValue should be used in this scenario?
Available options:
@available(iOS 4.0, *)
public static let voIP: StreamNetworkServiceTypeValue // ⚠️ Deprecated
@available(iOS 5.0, *)
public static let video: StreamNetworkServiceTypeValue
@available(iOS 5.0, *)
public static let background: StreamNetworkServiceTypeValue
@available(iOS 5.0, *)
public static let voice: StreamNetworkServiceTypeValue
@available(iOS 10.0, *)
public static let callSignaling: StreamNetworkServiceTypeValue
The goal is to ensure the extension’s TCP connection remains active and reliable in the background. Which value best supports that behavior?
Topic:
App & System Services
SubTopic:
Networking