chat21 / chat21-android-sdk

Android Chat SDK built on Firebase
http://www.chat21.org
MIT License
233 stars 98 forks source link

Message not receving to mobile but receving to firebase realtime database #38

Open pradeepknila opened 4 years ago

pradeepknila commented 4 years ago

Hi ., Chat Sdk working like charm past days , i am facing issues from last two days In My application i used for chat conversation after hit send icon , message status still pending but message receiving in Real time Database as well as not receiving in Receiver Side

PFA for Image Screen

Log : saveOrUpdateMessageInMemory for message : Message{id='-Lt3BGbivg9sbvfDy5fG', sender='mr1n3llvZlfTGcOss6MWB5VXSuv2', senderFullname='Pregy Pillay ', recipient='EcU8E6Ax4iXfyoOsC3fbpbTcdad2', recipientFullname='SujithA kingston', text='Oiiiii', status=0, timestamp=1573102099034, type='text', channelType='direct', metadata=null, attributes=null}

Screenshot_2019-11-07-10-23-10-61

In My Log show Exception : ConversationMessagesHandler : Error decoding message on onChildChanged Required sender field is null for message id : -Lt45PA8CZc9nnPRcgdM

Kindly support ASAP

gab-95 commented 4 years ago

Hi @pradeepknila , are you sure cloud functions on your firebase project still working properly? Give me more info about your problem, so i try to help you resolving your issue

pradeepknila commented 4 years ago

Hi @pradeepknila , are you sure cloud functions on your firebase project still working properly? Give me more info about your problem, so i try to help you resolving your issue

when i was trying to sending chat message to Realtime database its received in Fire base , but not receiving to Receiver End

"chatknila.com.chatsdk.core.messages.models" ---> Class Name

Message Status was STATUS_SENDING, I tried to print a log Kindly check below

Its a success log Log : saveOrUpdateMessageInMemory for message : Message{id='-Lt3BGbivg9sbvfDy5fG', sender='mr1n3llvZlfTGcOss6MWB5VXSuv2', senderFullname='Pregy Pillay ', recipient='EcU8E6Ax4iXfyoOsC3fbpbTcdad2', recipientFullname='SujithA kingston', text='Oiiiii', status=0, timestamp=1573102099034, type='text', channelType='direct', metadata=null, attributes=null}

kashyap-virtualdusk commented 4 years ago

Having same issue. Any luck with it?

pradeepknila commented 4 years ago

Hi @kashyap-virtualdusk no luck ., I created new chat module using socket , waste of time to using this library

zaprogrammer commented 4 years ago

Just a hint, unfortunately I faced the same issue, and I used an iOS application as Agent to reply for Android users. It was fixed by having two separate agent apps, Android agent app for android clients, and iOS agent app for android clients.

Bobbykart commented 4 years ago

had the same issue but i solved it.

After you install NPM and stuff, check if your package.json, firebase.json and index.js were overwritten and change it back by editing it and not replacing the file. also check maybe other files, too.

vikas-jain-plutus commented 3 years ago

@Bobbykart I am also facing the same issue after updating the Android 11 targetversion. I am not sure what causing the issue. But Can you please help me what things need to change now in the current working code?

MrJohn2014 commented 1 year ago

Get the same error when sending msg. Any luck with it?