UnityUnity V4 SDK Status Events

 

These docs are for PubNub 4.x for Unity which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.x for Unity.

If you have questions about the PubNub for Unity SDK, please contact us at support@pubnub.com.

CategoryDescription
PNBadRequestCategoryPubNub Unity SDK will send PNBadRequestCategory when some parameter is missing like message, channel, subscribe key, publish key.
PNUnexpectedDisconnectCategoryThe SDK is not able to reach the PubNub Data Stream Network because the machine or device are not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.
PNTimeoutCategoryProcessing has failed because of request time out.
CategoriesDescription
PNNetworkIssuesCategoryA subscribe event experienced connection issues when running.
PNReconnectedCategorySDK was able to reconnect to pubnub.
PNConnectedCategorySDK subscribed with a new mix of channels (fired every time the channel / channel group mix changed).
PNAcknowledgmentCategoryUsed API reported success with this status category.
PNAccessDeniedCategoryRequest failed because of access error (active PAM). status.AffectedChannels or status.AffectedChannelGroups contain list of channels and/or groups to which user with specified auth key doesn't have access.
PNTimeoutCategoryUsed API didn't receive a response from server in time.
PNDisconnectedCategoryClient unsubscribed from specified real-time data channels.
PNUnexpectedDisconnectCategorySubscribe loop failed and at this moment client is disconnected from real-time data channels. This could due to the machine or device is not connected to Internet or this has been lost, your ISP (Internet Service Provider) is having to troubles or perhaps or the SDK is behind of a proxy.
PNBadRequestCategoryRequest cannot be completed as not all required values have been passed (like subscribe key, publish key) or passed values are of unexpected data type.
PNMalformedFilterExpressionCategorySubscription request cannot be processed as the passed filter expression is malformed and cannot be evaluated.
PNMalformedResponseCategoryRequest received in response non-JSON data. It can be because of an error message from the proxy server (if applicable).
PNDecryptionErrorCategoryHistory API may return this status category in case if some messages can't be decrypted.
PNTLSConnectionFailedCategoryTLS handshake issues. In most cases is because of poor network quality and packets loss and delays.
PNRequestMessageCountExceededCategoryThis status event will be fired each time the client receives more messages than the value of RequestMessageCountThreshold, set in PNConfiguration.
PNReconnectionAttemptsExhausted
In case of network disconnect the PubNub client SDK will attempt to reconnect a finite number of times after which this status is sent and the re-connection attempts will stop.
PNUnknownCategoryPubNub SDK returns this error for SDK exceptions or when server responds with an error.