Java SDK v4 Beta

2 min readMay 27, 2016

We are happy to announce Version 4 of our Java SDK is ready for beta testing. Get it now!

The new Java SDK is completely rewritten from the ground up to be better, stronger, faster. You can almost hear the theme music from the Six Million Dollar Man, but you don’t need a bionic eye to see how great this update is.

Zoom into eye of the Six Million Dollar Man

Our updated Java SDK has a new architecture (like the iOS v4 SDKs), and can be used on any Java platform including Java SE, Java EE, and Android. Here are just a few of the many improvements

  • Reworked PubNub method invocation, each PubNub request is constructed via the builder / fluent API making it seamless to gradually construct requests.
  • Configuration knobs and feature flags are initialized in one seamless PubNub configuration via the PNConfiguration class.
  • Subscribe / Presence / Status messages are now coming through the global callbacks, introducing a design parity with iOS clients.
  • Supports the new v2 Publish / Subscribe API which allows server side message filtering configured by the client.
  • Synchronous and Asynchronous executions for each PubNub method are now contained within the same initialized class .
  • Logging is enabled via a configurable inside PNConfiguration, debug jars are no longer required.
  • Reworked networking stack via the Retrofit and OkHTTP clients
  • Brand new cryptography stack and elimination of the bouncycastle dependency.
  • Unified distributables for Java and Android

Before we release the final version we’d like you to help us beta test it. Our software isn’t done until you say it is, so please try it out.

More from PubNub

How to Create a Dating App: 7 Steps to Fit Any Design
Insights6 minMar 15, 2023

How to Create a Dating App: 7 Steps to Fit Any Design

There are common underlying technologies for a dating app, and in this post, we’ll talk about the major technologies and designs...

Michael Carroll

Michael Carroll

How to Create a Real-time Public Transportation Schedule App
Build6 minMar 14, 2023

How to Create a Real-time Public Transportation Schedule App

How to use geohashing, JavaScript, Google Maps API, and BART API to build a real-time public transit schedule app.

Michael Carroll

Michael Carroll

How to Create Real-Time Vehicle Location Tracking App
Build2 minMar 9, 2023

How to Create Real-Time Vehicle Location Tracking App

How to track and stream real-time vehicle location on a live-updating map using EON, JavaScript, and the Mapbox API.

Michael Carroll

Michael Carroll

Talk to an expert