Feedback

JavaChangelog for PubNub Java V4 SDK

 

These docs are for PubNub 4.0 for Java which is our latest and greatest! For the docs of the older versions of the SDK, please check PubNub 3.0 for Java and PubNub 3.0 for Android.

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

Added
  • set a name for Subscription Manager Consumer Thead.

Fixed
  • SDK crash in Android with Airplane Mode

Added
  • add deltas on interval action.

Added
  • To distinguish UUID's that were generated by our SDK, we appended pn- before the UUID to signal that it's a randomly generated UUID.

  • Allow the passing of okHttp connection spec via setConnectionSpec

Modified
  • Bump retrofit to 2.2.0

Added
  • add .toString methods to all public facing models and POJOs

Added
  • Add support to configure host name verifier.

Added
  • Add support to configure custom certificate pinning via SSLSocketFactory and X509 configuration objects.

Fixed
  • SDK was not sending the user metadata on Message Callback

Fixed
  • SDK did not honor the exhaustion of reconnections, it will now disconnect once max retries happened

Modified
  • Support for maximum reconnection attempts

  • Populate affectedChannel and affectedChannelGroups

  • Support for GAE

  • Emit pnconnected when adding / removing channels.

Modified
  • support for key-level grant.

Modified
  • JSON parser is switched to GSON, new artifact on nexus as pubnub-gson

  • GetState, setState return a JsonElement instead of a plain object.

Modified
  • Swapping out logger for slf4japi and removing final methods

Modified
  • remove final identifiers from the public facing API.

Modified
  • include publisher UUID on incoming message

  • allow to set custom TTL on a publish

Modified
  • Signatures are generated for all requests with secret key to ensure secure transmission of data

  • support for alerting of queue exceeded (PNRequestMessageCountExceededCategory)

  • signaling to okhttp to stop the queues on termination.

Modified
  • destory now correctly forces the producer thread to shut down; stop is now deprecated for disconnect

  • support for sending instance id for presence detection (disabled by default)

  • support for sending request id to burst cache (enabled by default)

  • proxy support via the native proxy configurator class.

Modified
  • on PAM error, populate the affectedChannel or affectedChannelGroup to signal which channels are failing

Modified
  • populate jso with the error.

Fixed
  • fixing parsing of origination payload within the psv2 enevelope

Modified
  • bumping build process for gradle 3 / merging documentation into the repo and test adjustments

Modified
  • adding channel / channelGroup fields when a message / presence event comes in.

Modified
  • adjustments for handling pn_other and decryption

  • retrofit version bumps.

Added
  • added unsubscribeAll, getSubscribedChannels, getSubscribedChannelGroups

  • SDK will establish secure connections by default

  • added support for exponential backoff reconnection policies

Modified
  • reduce overlap on error handling when returning exceptions.

Modified
  • send heartbeat presence value when subscribing

Modified
  • unified retrofit handling to lower amount of instances and sync'd the state methods.

Fixed
  • setting State for other UUID's is now supported.

Added
  • fire() method and no-replicaton options.

Fixed
  • fix to the version fetching.

Fixed
  • adjustment of the subscribe loop to alleviate duplicate dispatches.

Fixed
  • first GA.

Modified
  • reconnects and minor adjustments.

Fixed
  • fixing state not coming on the subscriber callback.

  • adjustments to URL encoding on publish, subscribe, set-state operations to avoid double encoding with retrofit.

Modified
  • reworking of message queue.

  • checkstyle, findbugs.

  • reworking error notifications.

Modified
  • initial beta1.

Check out PubNub's other Java-based SDKs, such as Java V4, Android V4