aws-samples / amazon-chime-react-native-demo

A React Native demo application for Android and iOS using the Amazon Chime SDK.
MIT No Attribution
102 stars 24 forks source link

Messaging Session and Observers #76

Closed kvntzn closed 3 years ago

kvntzn commented 3 years ago

I tried using this amazon-chime-sdk-js on a react native environment, However when I start the default messaging session it shows an error related to a browser.

Now I am trying to work on adding a messaging session and adding observer same with this. However I couldn't add it because they're not existing on this package com.amazonaws.services.chime.sdk

A solution I can think of is adding the messaging part with native modules not only the meeting part. Another alternative is an updated/new npm that would work with the messaging in react native as its working fine for the browsers.

Any help would be greatly appreciated.

linsang21 commented 3 years ago

Hi, thanks for reaching out. Adding messaging functionality on Android/iOS SDK is one of our planned work, we will update once more info is available.

I understand that amazon-chime-sdk-js was designed for browser app development, which sometimes doesn't work perfectly on RN. So at the meantime you could consider a self implementation to unblock your work, similar to amazon-chime-sdk-js's implementation. The high level logics are not too complicated, basically you need a websocket to get connect to the messaging session and observers to listen to the events from the websocket connection, which messages will be sent by that. Details need to pay attention are signing the websocket connect request and converting the event to message.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.