i never worked with pubnub earlier , so just want to get some guideline from you all , as my requirement is somewhat like , i need to make group chat application where i will be passing data from my application to Server using RestFull Apis and The server will be pushing the data to Pubnub and i will be retrieving data from pubnub to display data inside application.
Flow is something like :-
Passing Data from App to the Server using RESTful API.
Retrieving data from Server to App using PubNub Data Network.
I Goggled about pubnub and got to know how i can integrate that in my application as i will be needing publish_key and subscribe_key to initialize the Pubnub SDK inside my application.
Pubnub pubnub = new Pubnub("Your Publish Key Here", "Your Subscribe Key Here");
I have also studied about the Subscriber and Publisher , As per my understanding should i have to subscribe the channel which my Server will build at pubnub in order to retrieve the data from Pubnub and have to use the function as stated bellow :-
pubnub.history("channel_name", 100, new Callback() {
public void successCallback(String channel, Object message) {
System.out.println(message);
}
});
is this just what i need to do inside the code part of my application ,Please provide me some guideline , if anyone work with this type of requirement , that would be very help-full as i do not have much time to spent on R&D.
Thanks