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

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

null is not an object (evaluating' reactNative.NativeModules.NativeMobileSDKBridge.startMeeting') #171

Closed devsonuyadav closed 1 year ago

devsonuyadav commented 1 year ago

I have integrated the amazon sdk in react native. I have followed this step : https://github.com/aws-samples/amazon-chime-react-native-demo#2-add-sdk-binaries-to-the-project.

Step to reproduce :

  1. add sdk to the project.
  2. Add this folder to the project : https://github.com/aws-samples/amazon-chime-react-native-demo/tree/master/src

Screenshot of the issue : Screenshot 2023-01-03 at 12 19 22 AM 2

Environment Setup :

React Native : 0.68.8 SDK version : 0.17.9 React : 17.0.2 Mac Version : 12.4 buildToolsVersion = "31.0.0"

Build Gradle : minSdkVersion = 21 compileSdkVersion = 31 targetSdkVersion = 31 ndkVersion = "21.4.7075529"

Note : I have already reinstalled node_modules and gradlew clean

hokyungh commented 1 year ago

Thanks for reporting. We'll take a look and get back to you. Could you also provide your node version?

hokyungh commented 1 year ago

Hi I have tried on my machine, but I wasn't still able to do reproduce the same.

I have tried with node v16.16.0 and tried on following PR and see if it works for you? https://github.com/aws-samples/amazon-chime-react-native-demo/pull/173

devsonuyadav commented 1 year ago

Hi @hokyungh, I am sharing a video for you to check the things which we have done. We have degraded the node version from the 19.4.0 to 16.16.0 as mentioned and also upgraded the Amazon chime to

  1. 'software.aws.chimesdk:amazon-chime-sdk:0.17.9'
  2. 'software.aws.chimesdk:amazon-chime-sdk-media:0.17.10'

Still its running the same error as you can see in the video recording

Please advice what needs to be done from our end amazon_chime-Integration-error.mp4.zip

hokyungh commented 1 year ago

Could you share minimal demo where you are having issue? Based on the video, I don't think it was using the PR I published.

devsonuyadav commented 1 year ago

Here is the full uses video of library as well as setup part

https://drive.google.com/file/d/146yD8w5s7e_yPfz4E40oGXTamG1bOaNQ/view?usp=sharing

hokyungh commented 1 year ago

Hi for minimal demo I wanted some repo which I can run it locally. Based on the video, it is hard to know what you have copied and what is missing. For example, do you have code1 and code2? When you build android, do you see these files getting built from the logs?

Additionally, could you try out our demo app and see if it works for you? I have made https://github.com/aws-samples/amazon-chime-react-native-demo/pull/173 and wanted to see if it is how you integrate or it is even our demo app unable to build.

devsonuyadav commented 1 year ago

Hi @hokyungh, here is the demo application that I have created with the same configuration of our current application. https://github.com/devsonuyadav/chimesdk.git. Please let me know if anything more information required

hokyungh commented 1 year ago

Hi @devsonuyadav, I have taken a look at your repo, but looks like it is missing a lot of files as described here. I don't see files like

Could you add these and retest? You might need to change the package name and import.

You can compare the files rndemo and chimesdk to see which files are missing.

equilizer commented 1 year ago

facing the same problem...trying a workaround if found will post here.

equilizer commented 1 year ago

able to solve following the steps above. by @hokyungh

equilizer commented 1 year ago

@hokyungh implemented video call and and all but i was implementing a screen sharing option and it turns to black screen on reciever's end..

hokyungh commented 1 year ago

I'll close this issue since I wasn't able to reproduce from my side. Feel free to reopen if you still face issue. @equilizer do you mind opening new issue for it with repro steps?