Cloudkibo / iOS

iOS Code
0 stars 0 forks source link

Chat status don't change from sent to delivered if sender syncs after sometimes. #568

Closed Assadbintahir closed 7 years ago

Assadbintahir commented 7 years ago

Steps:

1- Turn off internet on android device. 2- Send some messages from iOS to android device. 3- Message status will be sent. 4- Now switch off internet on iOS device. 5- Switch on internet on android device. 6- messages will be received via sync. Don't see them. 7- turn on internet on iOS device. 8- Status will always remain sent and never change to delivered.

sumairasaeed commented 7 years ago

Worked to Debug this and it found that the status list was big so the push size exceeded limit. It missed the response push for status update "delivered" I have opened server side issue for solving payload size limit issue. It runs fine in normal case when status list is small. We will test it again after payload size issue is resolved https://github.com/Cloudkibo/CloudKibo/issues/506

jekram commented 7 years ago

@sumairasaeed I have asked this question on another thread Message Order disturbed when received pending messages from iOS #561

If you have sent the message via Rest why are you waiting for notification? What is notification tell us more than the Rest status?

sumairasaeed commented 7 years ago

Sir, when we successfully send message, we update status to "sent". But when receiver fetches it successfuly, it sends push of "delivered" to other side. This has been fixed now

jekram commented 7 years ago

Great news!!!! Good work