amazon-chime-sdk-ios icon indicating copy to clipboard operation
amazon-chime-sdk-ios copied to clipboard

How to send/receive compressed data through dataMessage

Open ashirkhan94 opened this issue 1 year ago • 0 comments

We need to send/receive compressed data through DataMessage. We use Pako.js with react-native demo app but cant send/receive that compressed data. is there any way to achieve this?

- (void)dataMessageDidReceivedWithDataMessage:(DataMessage *)dataMessage {
     [_bridge sendEventWithName:kEventOnDataMessageReceive body:@{
    @"data":[dataMessage data],
    @"topic":[dataMessage topic],
    @"senderAttendeeId":[dataMessage senderAttendeeId],
    @"senderExternalUserId":[dataMessage senderExternalUserId],
    @"throttled":@(dataMessage.throttled),
    @"timestampMs":@(dataMessage.timestampMs)
  }];
}

here [dataMessage data] is null on react-native side how do we get actual data instead of null.

we are using react-native: 0.71.11 AmazonChimeSDK-0.23.3 (No bitcode support) AmazonChimeSDKMedia-0.18.3 (No bitcode support)

Same issue on Android Side

Thanks

ashirkhan94 avatar Dec 08 '23 13:12 ashirkhan94