Status Events for PubNub Kotlin SDK

Publish

CategoryDescription
PNBadRequestCategoryPubNub Kotlin SDK will send a PNBadRequestCategory when some parameter is missing like message, channel, subscribe key, publish key.
PNUnexpectedDisconnectCategoryThe SDK isn't able to reach the PubNub Data Stream Network because the machine or device aren't 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.

Subscribe

Current categoryDeprecated categoryDescription
NonePNReconnectedCategorySDK was able to reconnect to PubNub.
PNConnectedCategoryPNConnectedCategorySDK successfully subscribed with a new mix of channels.
NonePNAcknowledgmentCategoryUsed API report success with this status category.
NonePNTimeoutCategoryUsed API didn't receive a response from the server in time.
PNUnexpectedDisconnectCategoryPNUnexpectedDisconnectCategorySubscribe loop did fail, and the client disconnected from real-time data channels.
NonePNMalformedResponseCategoryRequest received in response non-JSON data. It can be because of publish WiFi hotspot which requires authorization or a proxy server message.
NonePNRequestMessageCountExceededCategoryIf requestMessageCountThreshold is set, this status event will arrive each time when the client receives more messages than specified.
NonePNReconnectionAttemptsExhaustedThe subscribe loop has been stopped due to maximum reconnection exhausted.
PNDisconnectedCategoryPNDisconnectedCategoryThe subscription has been stopped. SDK usubsrcibed from all channels.
PNConnectionErrorNoneThe subscribe loop connection cannot be initialized.
PNSubscriptionChangedNoneSDK subscribed with a new mix of channels since the initial connection - subscribed to another channel or unsubscribed from a channel while still being subscribed to other channels.
Fired every time the channel/channel group mix changes.

Async operation responses

CategoryDescription
PNAcknowledgmentCategoryUsed API report success with this status category.
PNAccessDeniedCategoryRequest failed because of access error (active Access Manager). pnStatus.affectedChannels or pnStatus.affectedChannelGroups contain a list of channels and groups to which user with specified authentication key doesn't have access.
PNTimeoutCategoryUsed API didn't receive a response from the server in time.
PNBadRequestCategoryRequest can't be completed because not all required values have been passed or passed values have unexpected data type.
PubNub Kotlin SDK will send a PNBadRequestCategory when one or more parameters are missing, like message, channel, subscribe key, or publish key.
PNMalformedResponseCategoryRequest received in response non-JSON data. It can be because of publish WiFi hotspot which requires authorization or a proxy server message.
PNUnknownCategoryThe subscriber gets a 4xx code from the server, other than 400, 403, and 404
PNCancelledCategoryRequest was cancelled by user.
PNNotFoundCategoryThe subscriber got a 404 from the server.
Last updated on