Status Events for Android SDK
Unsupported docs
PubNub no longer maintains Android SDK docs, but our Java SDK or Kotlin SDK are fully compatible with the Android platform and you can use them to build mobile apps, ensuring stable software development.
The PubNub Android Software Development Kit (SDK) reports status events that describe connection state and error conditions. This page lists each status category and its meaning so you can handle them quickly in your app.
Publish
Category | Description |
---|---|
PNBadRequestCategory | The SDK sends this status when a required parameter is missing, such as message , channel , subscribe key , or publish key . |
PNUnexpectedDisconnectCategory | The SDK cannot reach PubNub servers. This may happen if the device loses its internet connection, your internet service provider has issues, or the SDK is behind a proxy. |
PNTimeoutCategory | The request timed out. |
Subscribe
Category | Description |
---|---|
PNNetworkUpCategory | The SDK detected that the network is online. |
PNNetworkDownCategory | The SDK reports this status when a connection is unavailable or it cannot reach PubNub servers. |
PNNetworkIssuesCategory | A subscribe event experienced an exception. This may happen if the device isn't connected to the internet, the connection is lost, your internet service provider has issues, or the SDK is behind a proxy. |
PNReconnectedCategory | The SDK successfully reconnected to PubNub. |
PNConnectedCategory | The SDK subscribed with a new mix of channels. This event fires every time the channel or channel group mix changes. |
PNAccessDeniedCategory | An Access Manager permission check failed. |
PNMalformedResponseCategory | JSON parsing failed. |
PNBadRequestCategory | The server responded with an error because the request was malformed. |
PNDecryptionErrorCategory | Decryption failed while using a decryption strategy. |
PNTimeoutCategory | The SDK failed to establish a connection to PubNub due to a timeout. |
PNRequestMessageCountExceedCategory | The number of messages in the in-memory cache exceeds the configured requestMessageCountThreshold . |
PNUnknownCategory | The subscriber received a non-200 HTTP response code from the server. |