JavaChangelog for PubNub Java V4 SDK

Modified
  • lock down okHTTP version to support latest android version

Modified
  • allow SDK to only send heartbeats without subscribing to the data channel.

Modified
  • allow setting setMaximumConnections to open more connections to PubNub

Modified
  • update gson dependency

Fixed
  • make listeners thread safe

  • close hanging threads on shutdown

Modified
  • add support to supress leave events

Modified
  • do not execute subscribe on empty string channel, channel groups

  • stop heartbeat loop if an error shows up.

Fixed
  • fix worker thread unloading.

Added
  • prevent concurrent modification of listeners.

Fixed
  • fix retrofit unloading.

Added
  • rework the loading of services to load the classes once.

Added
  • patch-up to the deduping algorithm

Added
  • Internal deduping mechanism when devices cross regions (dedupOnSubscribe).

Added
  • Allow certificate pinning via setCertificatePinner on PNConfiguration

  • Allow disabling of heartbeat by setting the interval to 0.

  • GAE fixes.

Added
  • Allow injection of httpLoggingInterceptor for extra logging monitoring..

Fixed
  • adjust queue exceeded notifications to be greater or equal of.

Fixed
  • gracefully handle disabled history

Added
  • on interval events, pass hereNowRefresh to indicate if a here_now fetch is needed.

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.