Manage PubNub Guest Users
Blog post from PubNub
PubNub requires clients to specify a user ID when using their SDKs, which serves various functions such as maintaining a consistent cross-device experience and managing user permissions and metadata. Challenges arise in managing guest users who do not log in, impacting billing and user experience. Three main approaches are suggested for handling guest user IDs: creating a new ID for each guest, maintaining guest user IDs across sessions, or allocating IDs from a guest user pool, each with its own advantages and challenges. The choice of approach depends on factors like expected guest user numbers and available development resources. While a phased approach starting with the simplest option may be beneficial, encouraging users to create accounts can also help mitigate these challenges.