The community forums are in BETA and closed to the public.

Showing a counter with the number of subscribers

I'm building an iOS app with a Parse backend, and in one of the screens, I would like to show a live count of all the people who are displaying this screen. So whenever someone opens the screen, it should subscribe to a topic, and every time some app subscribes (shows the screen) or unsubscribes (hides the screen), all the subscribers should be notified with the number of subscribers in order to update the live counter. Is it possible to do that with PubNub?

Yep, check out Presence Overview, the Quick Start, and iOS Reference!

You might want to consider our new DataSync feature. It is currently in beta for current customer with a Go or Global Cloud account.

For more details, see the how it works and the DataSync JavaScript Docs and let us know if you have any further questions.


Comments to this discussion are now closed!