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

Message not receving to mobile but receving to firebase realtime database

Open pradeepknila opened this issue 5 years ago • 8 comments

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

pradeepknila avatar Nov 07 '19 09:11 pradeepknila

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

gab-95 avatar Nov 08 '19 14:11 gab-95

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}

pradeepknila avatar Nov 13 '19 12:11 pradeepknila

Having same issue. Any luck with it?

kashyap-virtualdusk avatar Dec 23 '19 10:12 kashyap-virtualdusk

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

pradeepknila avatar Dec 23 '19 10:12 pradeepknila

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.

zaprogrammer avatar Jan 28 '20 11:01 zaprogrammer

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.

Bobbykart avatar Mar 12 '20 19:03 Bobbykart

@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?

vikas-jain-plutus avatar Aug 05 '21 14:08 vikas-jain-plutus

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

MrJohn2014 avatar Jan 05 '23 19:01 MrJohn2014