Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't send and receive message #17

Open
giovankabisano opened this issue Jul 27, 2018 · 4 comments
Open

Can't send and receive message #17

giovankabisano opened this issue Jul 27, 2018 · 4 comments

Comments

@giovankabisano
Copy link

giovankabisano commented Jul 27, 2018

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
Copy link

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
Copy link

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

@Suhailakl
Copy link

Have you got the fix for this?

@meshileya
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants