App Context

Streamline Real-Time Updates

Store information about your application's users, channels, and their relationships, while receiving real-time events as data changes

Easily store and sync user, channel, and membership information

Easy-to-use storage

Store user, device, channel, and channel membership information without building connectors or maintaining external infrastructure.

Real-time data sync

Receive instant events whenever data changes—enabling your apps to update in real time regardless of scale.

Decisions capability

Use the data stored in App Context with FunctionsIlluminate, and other PubNub services to make smarter decisions.

Where is Presence Used?

Chat

Manage user profiles, channel details, memberships, roles, and access in chat apps. Track user status and last-read messages.

Live events

Enable voting, live trivia, real-time bids, and CTA overlays for merchandise and promotions. Manage access and subscriptions.


Gaming

Track real-time player stats, display live leaderboards, facilitate player trading, and sync game state changes and multiplayer actions.


And more...

Track user locations, monitor cursor positions, update device statuses, and store information about users, devices, and channels.


Features that Streamline Real-Time Updates

  • User metadata: Store user-specific or device-specific information such as names, emails, or device status without any additional backend infrastructure needed.


  • Channel metadata: Set and retrieve channel properties such as title, subtitle, pinned messages, leaderboards, and more.


  • Membership metadata: Manage user-channel relationships, streamlining the management of user access and interactions within your application.


  • Events: Receive instant events whenever the data changes, enabling your apps to update in real time regardless of scale.


  • Filtering: Filter the data based on specific conditions such as name likeness, update timestamps, and more, allowing precise control over the metadata that is fetched or updated.


  • UI tools: Use BizOps Workspace to search, view, and update the data stored in App Context.

Frequently Asked Questions

expand_less

Why do I need App Context?

You need App Context because it provides easy-to-use, serverless storage for user, device, channel, and membership information. It enables instant synchronization of data across all client devices, which is crucial for applications requiring up-to-date information, such as chat apps, games, and collaborative tools.

You need App Context because it provides easy-to-use, serverless storage for user, device, channel, and membership information. It enables instant synchronization of data across all client devices, which is crucial for applications requiring up-to-date information, such as chat apps, games, and collaborative tools.

expand_more

How do I enable App Context?

App Context is not enabled by default. Once you have created your app and keyset in the Admin Portal, you will be able to see App Context in the Configuration panel. You will have to toggle the option to enable App Context and choose the region where your information will be saved. Note: Once you have selected a region, it cannot be changed later.

expand_more

I enabled App Context on Portal, now what?

Once enabled, you can start creating users and channels and establishing relationships between them. There are two ways to do this, either use one of our PubNub SDKs to set the channel metadata and user metadata, or specify which users are members of which channels using the Membership API. Alternatively, you can use BizOps Workspace to create userschannels, and memberships without writing any code.

Once created, App Context becomes the source of truth for all data associated with your users and channels, allowing you to manage the data in a single place and have any updates propagated to all your PubNub users.


expand_more

How do I get user updates in real time?

You can register to receive real-time updates on changes in App Context through any of our PubNub SDKs. To achieve this, add an 'Objects' listener (also known as an 'Objects' handler in some SDKs). See our documentation for more information.

expand_more

Can I change the Region once it is chosen?

No, once you have chosen the region where your data will be saved, you can not change it.

expand_more

What are the limits of App Context?

To view the limits of App Context, please visit our documentation.

expand_more

Do you provide any data management tools?

Yes, App Context provides management capabilities through the BizOps Workspace. This tool allows operations teams to manage the data stored in App Context through an intuitive, no-code interface. Users can search, view, and update user, device, channel, and membership information without needing to write code.

expand_more

Can App Context be used for device-specific information?

Yes, App Context can sync device status updates (battery levels, sensor readings, etc.) using the User metadata object.

Ready to get started?