Comments (1)
Hello @manohar-techahead,
If you encounter Error Code 404 with the message "The operation could not be completed," it typically arises when the dialog.join()
method is improperly utilized. To prevent this error, we suggest reviewing the following steps:
-
Avoid Multiple Calls: Ensure that you refrain from invoking the
dialog.join()
method multiple times in quick succession. To address this, you can employ a check using thedialog.isJoined()
method. -
Check Dialog Type: Verify that you are not attempting to join a private dialog. To do this, confirm that
dialog.type
is not equal to.private
. -
Reconnect After Disconnection: If a disconnection occurs, you must reestablish the connection before engaging with the dialogs.
Below is the revised code snippet with the edits:
extension MyClass: QBChatDelegate { }
// MARK: QBChatConnectionProtocol part of QBChatDelegate
extension MyClass: QBChatConnectionProtocol {
func chatDidConnect() {
joinAll()
}
func chatDidReconnect() {
joinAll()
}
private func joinAll() {
for dialog in dialogs {
if dialog.type != .private, !dialog.isJoined() {
dialog.join()
}
}
}
}
Furthermore, if you encounter Error Code -1002, indicating "You are not connected to chat," this typically indicates a lack of connection to the chat service. To resolve this, ensure that a connection is established using QBChat.instance.isConnected
before transmitting a message. Additionally, for both group and private messages, verify that dialog.isJoined()
returns true
.
Please note that based on your logs, it appears that you might be attempting to join a private dialog of type 3, which could be contributing to the "The operation could not be completed" error.
If you have any more questions or need further assistance, don't hesitate to reach out. Additionally, we'd be thrilled to have you join our QuickBlox Dev Community at https://discord.gg/8D7raPJj. Your presence would be greatly appreciated!
from quickblox-ios-sdk.
Related Issues (20)
- Quick blox chat The operation couldn’t be completed. com.quickblox.chat error -1004 HOT 1
- 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
- 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
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.