Tutorials

In-App Chat

Build a Chat App with the PubNub CORE SDK

This tutorial will guide you through creating a simple chat app using the flexible PubNub SDK: Sending and receiving chat messages, member presence and looking up past messages. NOTE: This tutorial predates the introduction of our dedicated CHAT SDKs; developers creating chat apps should use our CHAT SDKs which support JavaScript / Typescript, Unreal, Kotlin, Swift, and Unity.
Android (Kotlin)iOSFlutterReact NativeJavaScript
IoT Device Control

Build an IoT solution using PubNub

This tutorial will show you how to create an IoT solution using PubNub, concentrating on architectural best practices
JavaScript
Dual smartphone screens displaying chat application interface with conversation between users and notification panel.
Mobile Push Notifications

Mobile Push Notifications Tutorial

In this tutorial, you’ll discover how to set up and add mobile push notifications to an application.
Android (Kotlin)iOS
Digital whiteboard with simple drawings and annotations using various colors.
Collaboration

Collaboration

In this tutorial, you’ll discover how to use PubNub to set up and power collaborative applications.
JavaScript
PubNub Real-Time Data Streaming Demo
Real-Time

Create a Real-Time Data Streaming application

This tutorial will walk you through two techniques to develop an end-to-end real-time streaming application with PubNub: Using the PubNub SDK and using the HTTP Streaming endpoint.
NodeJS
Interactive global map showing a single active user in Seattle with information about the city and its connection to the grunge music scene.
Geolocation

Geolocation Tracking Tutorial

In this tutorial, you’ll discover how to build a geolocation tracking app that allows users to share locations and send messages in real-time, as well as integrate with ChatGPT to provide information about your location.
JavaScript
Collaboration

Live Auction and Marketplace Tutorial

In this tutorial, you’ll learn how to build a Live Auction and Marketplace app that allows users to create live auctions and bid in real-time.
JavaScript
Simple Chat App Preview 2
In-App Chat

Simple Chat App with Chat Components

In this tutorial you’ll discover how to set up and build a simple standalone chat application using PubNub Chat Components. Components are ready-made building blocks to add chat features to new or existing apps. Please note that PubNub will discontinue support for Chat Components on January 1, 2025. They will remain open-source and community-maintained but will no longer receive feature updates from PubNub.
React Native
Gaming

Unity

In this tutorial, you’ll discover how to use PubNub to power leaderboard and chat in a Unity game.
Unity