PubNub Product Updates

Introducing the Native Kotlin SDK for PubNub

2 min read David Lin on Jul 6, 2020
Try PubNub Today

Free up to 1MM monthly messages. No credit card required.

Subscribe to our newsletter

By submitting this form, you are agreeing to our Terms and Conditions and Privacy Policy.

With a native Kotlin SDK, you can build Android applications using PubNub with best practices baked in.

In our continuous quest to deliver a world-class developer experience, we’re pleased to introduce our new PubNub Kotlin SDK

Kotlin has emerged as the default programming language for modern Android applications. This SDK therefore allows Android developers to use PubNub in their applications without compromise or guesswork. Instead, you can use this SDK to implement PubNub features natively in Android applications, with all the concision, safety, and productivity benefits of developing with Kotlin.

While it is certainly possible to use the PubNub Java SDK for a Kotlin application, the new, native Kotlin SDK provides assurances that the operational functionalities match expectations for a seasoned Kotlin developer.

Solving Developer Problems

Thanks to Google’s endorsement, Kotlin is set to become the default programming language for Android applications. With PubNub’s native Kotlin SDK, you can use all of PubNub’s features in modern Android applications with certainty. 

Our native Kotlin SDK implements PubNub features with common Kotlin practices and patterns, providing a better developer experience and easier onboarding for seasoned Kotlin developers. Additionally, using a native Kotlin SDK means that you can write native code with the confidence that their application follows the intended patterns built into the Kotlin language, giving you best-practices baked in.

The PubNub Kotlin SDK is used like any other Kotlin library. Simply import it into your application using the native klib Kotlin Library Manager tool, and get building.

A Better Developer Experience

Developers using the native PubNub Kotlin SDK can use patterns and practices common to Kotlin developers without having to “guess” how a PubNub feature might work in their Kotlin application. 

With proper patterns and documentation already built into the native Kotlin SDK, developers creating Kotlin applications get swift and pleasant onboarding experience, and they can get started on developing their applications right away.

This SDK is officially supported by PubNub. That means that, if you ever need to work with PubNub Support, you can expect that they’ll be on the same page when it comes to how you intended for the application to work, making it quicker and easier to get solutions.

Because Kotlin was created to work in tandem with Java, migrating an application from Java to Kotlin is also seamless, as it can be done in the same code base. This interoperability makes it easy to upgrade and convert applications to Kotlin. Needless to say, any new or up to date Android developer will feel at home using our native Kotlin SDK.

To read more about this release, visit our native Kotlin SDK documentation. If you have questions, please reach out to Happy building!

More from PubNub

How to Add a Notification Badge to Icons in React Native
Real-time Chat BlogDec 19, 20226 min read

How to Add a Notification Badge to Icons in React Native

Display real-time notification badges with PubNub and React Native to display important information and bring users back to your...

Michael Carroll

Michael Carroll

Digital Twins and the Future of Real-Time Data
InsightsDec 6, 20224 min read

Digital Twins and the Future of Real-Time Data

The concept of Digital Twins has evolved over the last two decades, however, one thing remains the same: the need for real-time...

Michael Carroll

Michael Carroll

How Many Text Characters Fit in a 32KB PubNub Message?
Real-time Chat BlogNov 24, 20224 min read

How Many Text Characters Fit in a 32KB PubNub Message?

Learn the ins-and-outs of PubNub message size and get a better idea of how many text characters fit in a single message.

Michael Carroll

Michael Carroll