Available SDKs

PubNub provides SDKs for web, mobile, server, game engine, and embedded environments. If no SDK is available for your platform, use the REST API directly.

Web and server​

SDKVersionPlatformInstall
JavaScript13.1.3Node.js 22+, modern browsers, React npm install pubnub
Python10.8.1Python 3.9+pip install pubnub
Java14.1.0Android, JVMAdd dependency to Gradle or Maven
Kotlin14.1.0Android, JVMAdd dependency to Gradle or Maven
Dart9.1.0Flutter, standalone Dartdart pub add pubnub
Gov10.2.0Go 1.25+go get github.com/pubnub/go/v9
Ruby6.2.0Rubygem install pubnub
PHP10.1.0PHPcomposer require pubnub/pubnub
Rust0.9.0Rustcargo add pubnub
C#9.1.0.NETdotnet add package PubNub
REST API-Any HTTP client-

Mobile​

SDKVersionPlatformInstall
Swift11.1.0iOS, macOS, tvOS, watchOS (Xcode 14+)Swift Package Manager or CocoaPods
Kotlin14.1.0Android, JVMAdd dependency to Gradle or Maven
Java14.1.0Android, JVMAdd dependency to Gradle or Maven
Objective-C7.0.5iOS, macOSpod install PubNub
Dart9.1.0Flutter, standalone Dartdart pub add pubnub

Game engines​

SDKVersionPlatformInstall
Unityv10.1.0Unity EditorUnity Package Manager
Unreal Engine2.2.0Unreal EditorPlugin

Embedded and IoT​

Embedded SDKs do not use a package manager. For new projects, use the C SDK (version 1.1.0). The other embedded SDKs share the C-Core (legacy) library (version 7.3.7).

SDKPlatform
CLinux, macOS, Windows, FreeRTOS, ESP-IDF
C-Core (legacy)Portable C
POSIX C (legacy)Linux, macOS
POSIX C++ (legacy)Linux, macOS
Windows C (legacy)Windows
Windows C++ (legacy)Windows
FreeRTOS (legacy)FreeRTOS
Mbed (legacy)ARM Mbed OS

Was this page useful?

Last updated on