Home / Companies / PubNub / Blog / Post Details
Content Deep Dive

Build Android Messaging App: Scaling and Channel Groups

Blog post from PubNub

Post Details
Company
Date Published
Author
Michael Carroll
Word Count
3,551
Language
English
Hacker News Points
-
Summary

In the final installment of a four-part series on building an Android messaging app with PubNub, this tutorial explores advanced techniques for managing multiple channel subscriptions using PubNub's Stream Controller, focusing on Multiplexing, Wildcard Subscriptions, and Channel Groups. The guide details how to implement a "latest message from channels" tab that dynamically displays messages from various channels and offers insights into the core concepts of subscriptions and message callbacks. Multiplexing allows a single device connection to support multiple channel subscriptions efficiently, while Channel Groups provide a way to manage numerous channels by assigning them a collective alias. The tutorial further explains how to create subscription callbacks, use adapters to link dynamic data with the Android UI, and ensure UI updates occur on the UI thread. Additionally, the document covers advanced features such as Wildcard Subscribe, which allows for hierarchical channel subscriptions, and the management of Channel Groups, including adding, removing, and deleting channels, ultimately resulting in a fully functioning Android messaging application powered by PubNub.