chat21 / chat21-android-demo

Android chat demo app with Chat21 SDK for Firebase
http://www.chat21.org
MIT License
62 stars 58 forks source link

Can't send and receive message #17

Open giovankabisano opened 6 years ago

giovankabisano commented 6 years ago

I have already clone this project. And i want to use my own firebase to do chatting

I have do the following action to migrate this project from chat21 Firebase to My Own Firebase

  1. Change the google-service.json with my firebase google-services.json
  2. Change the firebaseUrl in chat_setting.xml

The application already can do register, login, see contact... But it can't do chatting. When i want to send message, the user who is sending message is able to see his message with icon not delivered and the recipient is not able to receive the message (but in my firebase, the message already stored).

Can you give me a solution or an anwer, maybe there's something that i forgot to change?

Or am i must change the cloudfunction too? (In chat_setting.xml) How do i make cloudfunction?

dikixeranta commented 6 years ago

You must follow all instructions step by step carefully on

1.http://www.chat21.org/docs/android/get-started/

2.https://github.com/chat21/chat21-cloud-functions

Yes you are right, you must change chat_setting.xml with your own value.

I have already success create an application with chat21 library and with my own firebase database.

Thanks for Chat21 sdk Team, Great Jobs

meshileya commented 6 years ago

I keep getting this error com.google.firebase.database.DatabaseException: Calls to setPersistenceEnabled() must be made before any other usage of FirebaseDatabase instance.

Suhailakl commented 5 years ago

Have you got the fix for this?

meshileya commented 5 years ago

I think I was able to get it working by configuring the Firebase Cloud function.