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.0.3Node.js 22+, modern browsers, React npm install pubnub
Python10.7.2Python 3.9+pip install pubnub
Java13.4.4Android, JVMAdd dependency to Gradle or Maven
Kotlin13.4.4Android, JVMAdd dependency to Gradle or Maven
Dart8.0.3Flutter, standalone Dartdart pub add pubnub
Gov10.0.0Go 1.25+go get github.com/pubnub/go/v9
Ruby6.1.1Rubygem install pubnub
PHP9.0.3PHPcomposer require pubnub/pubnub
Rust0.8.0Rustcargo add pubnub
C#9.0.0.NETdotnet add package PubNub
REST API-Any HTTP client-

Mobile​

SDKVersionPlatformInstall
Swift10.2.0iOS, macOS, tvOS, watchOS (Xcode 14+)Swift Package Manager or CocoaPods
Kotlin13.4.4Android, JVMAdd dependency to Gradle or Maven
Java13.4.4Android, JVMAdd dependency to Gradle or Maven
Objective-C7.0.4iOS, macOSpod install PubNub
Dart8.0.3Flutter, standalone Dartdart pub add pubnub

Game engines​

SDKVersionPlatformInstall
Unityv9.5.0Unity EditorUnity Package Manager
Unreal Engine2.1.0Unreal EditorPlugin

Embedded and IoT​

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

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