0

I want to create an app that can simply using firebase allow users to add friends and be able to send one to one messages like whatsapp but with usernames.

I have seen and used the firebase chat example but it doesn't help me understand how to create device to device messaging but instead group messaging between everyone on the app which i don't want.

I have seen many examples of chat apps but all are out of date (PARSE/DEPRECATED FIREBASE) or unclear on how to create it.

user3694517
  • 11
  • 1
  • 3

1 Answers1

2

Firebase does not support direct communication between two devices. You need an additional app server that communicates with gcm. A nice article that helped me to understand the structure can be found here. http://www.grokkingandroid.com/xmpp-server-google-cloud-messaging/. A nice project that worked for me is the friendlyPing example https://github.com/googlesamples/friendlyping.

shalama
  • 1,133
  • 1
  • 11
  • 25