cometchat / chat-sdk-android

Text Chat SDK for Android
https://www.cometchat.com
22 stars 12 forks source link

[SDK-Version] 1.8 Pull Message #18

Closed BY-AJ closed 4 years ago

BY-AJ commented 4 years ago

Describe the bug When pulling the message,return fetching failed with exception: Request Already in Progress

158221f9b4000510bef6b84177d3970

adityagokula2210 commented 4 years ago

Hello @BY-AJ Apologies for the late reply. This is the default behavior of the SDK. Since while fetching messages there is pagination involved, we cannot let two requests to be executed simultaneously. Thus, if a request to fetch messages is already in progress, the SDK returns the exception saying request already in progress. You can ignore this exception and call the fetchNext() or fetchPrevious() method again if this exception is encountered. Hope this helps.