Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It seems websdk sends chat msg in different format but ios sdk expects differently #381

Open
royatanu94 opened this issue May 24, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@royatanu94
Copy link

royatanu94 commented May 24, 2024

Describe the bug
Hi All,
It seems websdk sends chat msg in different format but ios sdk expects differently which causes Error in ios sdk "Failed to decode data keyNotFound(CodingKeys(stringValue: "messageId", intValue: nil)"
IOS expects:
{
"text": "Jddj",
"senderIdentity": {
"stringValue": "nu-ios4"
},
"messageId": "B5F97563-A-E2DDE3D8038",
"senderSid": {
"stringValue": "dddcdc"
}
}

SDK Version
ios sdk 2.0.7, used web for https://meet.livekit.io/?tab=custom

iOS/macOS Version
ios 17

Steps to Reproduce

Send data messages from browser to ios device, ios sdk will fail to decode. But works when chat msg is send from ios to browser.

Expected behavior

Data message exchange should work in both way.

Screenshots
image
image

Logs
DataChannelPairActor.dataChannel(_:didReceiveMessageWith:) dataChannel(didReceiveMessageWith:)
Failed to decode data keyNotFound(CodingKeys(stringValue: "messageId", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: "messageId", intValue: nil) ("messageId").", underlyingError: nil))

@royatanu94 royatanu94 added the bug Something isn't working label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants