I\'m using pubnub as a publish/subscribe channel between an android app and a server. Currently I\'m thinking of how I will implement this.
I\'m using the provided libra
You have an excellent set of questions an detailed points that I will talk about in this answer. You are using Android and you are interested in the conventions and best practices for PubNub Publish/Subscribe scenarios.
Your use case is very common and the best ways to build apps always vary dependent on application needs. However you definitely have the right idea and have asked all the right questions. You just needed some sample code and a direction to get started on implementing the specifics of your application needs. To define your needs in a list:
So to get started I will provide you direct links to some examples and methods:
Regarding your thoughts - This IS the right way to do it: