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.

Choose an SDK to get started in your preferred language:
Your app will include:

In this getting started tutorial you will develop an in-app chat application using the PubNub SDK and backed by PubNub's reliable and scalable architecture:

  • Send and receive chat messages between instances of the app

  • Monitor the online / offline status of chat participants

  • Look up past messages

  • Set a friendly name for the app instance

  • Storage and retrieval of the friendly name using PubNub's serverless storage (App Context)