For AI agents: this page in Markdown: https://www.pubnub.com/docs/sdks/android/status-events.md. Documentation index: https://www.pubnub.com/llms-full.txt.

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​

CategoryDescription
PNBadRequestCategoryThe SDK sends this status when a required parameter is missing, such as message, channel, subscribe key, or publish key.
PNUnexpectedDisconnectCategoryThe 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.
PNTimeoutCategoryThe request timed out.

Subscribe​

CategoryDescription
PNNetworkUpCategoryThe SDK detected that the network is online.
PNNetworkDownCategoryThe SDK reports this status when a connection is unavailable or it cannot reach PubNub servers.
PNNetworkIssuesCategoryA 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.
PNReconnectedCategoryThe SDK successfully reconnected to PubNub.
PNConnectedCategoryThe SDK subscribed with a new mix of channels. This event fires every time the channel or channel group mix changes.
PNAccessDeniedCategoryAn Access Manager permission check failed.
PNMalformedResponseCategoryJSON parsing failed.
PNBadRequestCategoryThe server responded with an error because the request was malformed.
PNDecryptionErrorCategoryDecryption failed while using a decryption strategy.
PNTimeoutCategoryThe SDK failed to establish a connection to PubNub due to a timeout.
PNRequestMessageCountExceedCategoryThe number of messages in the in-memory cache exceeds the configured requestMessageCountThreshold.
PNUnknownCategoryThe subscriber received a non-200 HTTP response code from the server.

Was this page useful?

Last updated on