Presence

Automatic real-time detection of device and user online state

Enhance user experience with easy-to-use APIs for online/offline tracking, real-time user count, and more.

What can you do with Presence?

Status Icon

User Online state

Deliver instantaneous status updates whenever user state changes for any number of connected users across related apps.

Audience Icon

Audience count and location

Detect and update connected user counts and locations.

Battery Icon

Battery State Notifications

Monitor device battery state, and trigger events when thresholds are met.

Functions Icon

Functions

Trigger powerful serverless functions to run business logic whenever a user connects or disconnects.

Server Icon

Webhooks

Configure PubNub to callback to your server (or any REST API) whenever a user state changes.

Presence Management

Track specific Presence events such as: Join, Leave, TimeOut, State-Change, and Intervals. Add Channel Patterns or Channel Groups, specify the events to track for each group, and more

Where is Presence Used?

Summary Icon

User Lists - Create live-updating lists of online and offline users, like chat contact lists.

Read more

IOT Icon

IoT Device Management - Allow users to receive device status and control devices such as light bulbs, door locks, temperature sensors, and security cameras. 


Read more

Frequently Asked Questions

How do I turn Presence on in Portal?
I just turned Presence on my portal now what?
What are the queries API available for Presence?
What are the events generated when Presence is enabled?
What is the purpose of the PNPRESS channel?
How do I get a client event for Presence?
How do I track if users are online or not?
What are the limits of Presence api calls?