Comments (3)
Try to use 'date_sent' field and request only messages from history where 'date_sent' > last message's date from 'chatDidReceiveMessage'
from quickblox-ios-sdk.
We are already using 'date_sent' to fetch the history. But the problem is, suppose we send a request to fetch history records > 'date_sent'. But before we receive the response, we receive a new message through 'chatDidReceiveMessage'. In this scenario, the same message will be delivered through both history response and 'chatDidReceiveMessage'.
In this scenario, we will not know the last 'date_sent', as we may keep on get messages through 'chatDidReceiveMessage'.
If we get either message ID (Which should be equivalent to custom object ID) for each message or total new message count in socket, we can handle this scenario in our app.
from quickblox-ios-sdk.
QuickBlox releases Chat 2.0 which supports message history out of the box. Check new iOS Chat message http://quickblox.com/developers/SimpleSample-chat_users-ios
from quickblox-ios-sdk.
Related Issues (20)
- Is there any development in SwiftUI on IOS platform? HOT 1
- iOS - Can not make video call once app in background or terminated state. HOT 1
- Calling issue android to ios app background and close/. HOT 1
- iOS 16 Video Issue
- QuickBlox 2.18.0 & QuickBloxWebRTC 2.8.0 can't upload to App Store Connect HOT 3
- Push notifications are not sent to iOS device after regaining internet connection HOT 1
- Notification custom payload HOT 1
- Update user issue HOT 2
- In addition to these functions should there be other? For example, transfer files HOT 1
- Load message Skip value isn't correct. HOT 2
- Issue with calling when login on multiple devices HOT 3
- Support for Rich links using LPLinkView HOT 2
- iOS app crash when call from flutter app - [__NSCFConstantString count]: unrecognized selector sent to instance 0x104a6bc10 HOT 4
- Web to iOS call is not Connecting HOT 5
- The operation couldn’t be completed. (com.quickblox.chat error -1002.) HOT 1
- Getting the notification in testing mode but not in live mode HOT 4
- Last message is not deleted on deleting the dialog HOT 1
- Request failed: client error (422) on sendVoipPush HOT 11
- Call connection issue - Failed to send TURN message
- Request failed: client error (422) on sendVoipPush for specific users HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quickblox-ios-sdk.