aws / amazon-chime-sdk-ios

An iOS client library for integrating multi-party communications powered by the Amazon Chime service.
https://aws.amazon.com/chime/chime-sdk/
Apache License 2.0
144 stars 67 forks source link

How to send/receive compressed data through dataMessage #623

Closed ashirkhan94 closed 3 weeks ago

ashirkhan94 commented 11 months ago

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

linsang21 commented 3 weeks ago

Closing this due to inactivity. Please reopen or submit a support case if this is still an issue.