2

I am developing chat application using Pubnub. I have successfully created group chat using Publish/subscribe.

Now I want to develop one-one chat using Pubnub. I am trying using PnGcmMessage but chat not working.

If anyone knows this, please help me !!

  • 1
    Nancy - If you managed to get group chat working then all you need to do is prevent more than two people from joining the channel and you have private chat. But I know what you are really asking is how to get two people to *start* chatting. How does one user invite another user to a private chat, correct? – Craig Conover Nov 14 '15 at 21:56
  • See this for some insights using JavaScript. Different code, same concept: https://www.pubnub.com/blog/2014-09-02-javascript-private-chat-api-with-access-control/ and this http://stackoverflow.com/questions/10843909/pubnub-publish-message-between-two-private-channels – Craig Conover Nov 14 '15 at 21:59
  • Exactly I want one user to invite second user for private chat. – Er.Nancy Thakkar Nov 16 '15 at 04:20
  • 1
    I got the solution from Github https://github.com/WizTheEngineer/DroidMessenger but using Parse . – Er.Nancy Thakkar Nov 16 '15 at 04:21
  • Er.Nancy Thakkar - thanks for finding and providing. Tossed all helpful links in official answer. Cheers! – Craig Conover Nov 16 '15 at 04:43

2 Answers2

5

I have successfully created one-one chat using Pubnub.Here is the useful links

Community
  • 1
  • 1
1

Providing all helpful links here as the answer:

Community
  • 1
  • 1
Craig Conover
  • 4,710
  • 34
  • 59