chat21-android-demo icon indicating copy to clipboard operation
chat21-android-demo copied to clipboard

Can't send and receive message

Open giovankabisano opened this issue 6 years ago • 4 comments

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?

giovankabisano avatar Jul 27 '18 04:07 giovankabisano

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

dikixeranta avatar Jul 28 '18 07:07 dikixeranta

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

meshileya avatar Sep 19 '18 11:09 meshileya

Have you got the fix for this?

Suhailakl avatar Apr 16 '19 07:04 Suhailakl

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

meshileya avatar Apr 16 '19 08:04 meshileya