i'm new to PubNub [iOS], i see the tutorial videos and documentation, But i can't understand how the actual process happens I understand this, We create [Pub/Sub] PubNub Channels to receive messages, but these channels are not stored any where in the pubnub, then how to manage an app like WhatsApp (Has groups and Single user chat)
Please suggest how to configure the existing iOS App for PubNub
As i understand i need to create a separate channel for each friend of a user, and separate channel for each user in a group to group is this correct? or please explain the procedure how it should configure in my app
Edit:
I have a question regarding storing and retrieve messages from history
In Case of single user chat:
When User1 sendMessage to User2, i'm Publishing in Two channel as per the Inbound Architecture in the scalabl3
- inbound_user2
- hybrid_user1_to_user2
When User2 sendMessage to User1, i'm publishing in Two channel
- inbound_user1
- hybrid_user2_to_user1
But when i've to retrieve the history i need to get history from two channels hybrid_user1_to_user2 and hybrid_user2_to_user1 and need to sort them by timetoken
Can you please tell me that is it is the correct approach or not? if not please suggest
Thanks...