Using the iOS sender API, when my app goes in the background, the SDK disconnects all connections, and I cannot run more media files until the app comes to the fore. My application plays audio and is allowed to run and stream in the background. Is it possible to tell the Googlecast platform to open sockets?
Here's the background log:
INFO: action will be canceled
INFO: now in the background
FINE: - [Disable GCKCastSocket] disable
FINE: - [GCKCastSocket doTeardownWithError:] doTeardownWithError
FINE: - [GCKCastSocket doTeardownWithError:] delegate notification that the socket is disconnected
FINE: - [GCKHeartbeatChannel didDisconnect] disconnected - stop the pulse timer if necessary
FINE: - [GCKCastSocket socketDidDisconnect: withError:] socketDidDisconnect: withError: "(null)"
Then, when the application resumes: INFO: go to the foreground
FINE: - [GCKCastSocket doTeardownWithError:] doTeardownWithError
FINE: - [GCKCastSocket doTeardownWithError:] delegate notification that the socket is disconnected
FINE: - [GCKCastSocket connectToHost: port: withTimeout:] Connection to "192.168.1.4" on port 8009l ...
INFO: Active
FINE: - [GCKCastSocket socket: didConnectToHost: port:] socketDidConnect:
FINE: - [GCKCastSocket socketDidSecure:] socketDidSecure:
FINE: - [GCKCastSocket: doneReadData: withTag:] socket, expected message length = 1307
FINE: - [GCKDeviceAuthChannel didReceiveBinaryMessage:] Genuine Google device didDeviceAuthenticated = YES
FINE: - [GCKDeviceManager deviceAuthChannelDidAuthenticate:] ,
FINE: - [ GCKCastSocket: doneReadData: withTag:], = 474
FINE: - [GCKDeviceManager receiverControlChannel: didReceiveStatusForApplication:] (CC1AD845)
FINE: - [GCKDeviceManager connectAndNotifyDidConnectToApplication: launchApplication:] < 0x1467c8f0: GCKApplicationMetadata > (CC1AD845), web-11
FINE: - [ GCKCastSocket: doneReadData: withTag:], = 135
FINE: - [GCKMediaControlChannel didReceiveTextMessage:]: { "type": "MEDIA_STATUS", "status": [], "requestId": 6}