client-sdk-swift icon indicating copy to clipboard operation
client-sdk-swift copied to clipboard

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

Open royatanu94 opened this issue 1 year ago • 0 comments

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 avatar May 24 '24 05:05 royatanu94