Open LoknathPraj opened 7 months ago
Kindly look into this issue i'm trying to fix it from last 3 Days
@LoknathPraj
the correct syntax is ConnectyCube.videochat.onCallListener = this._onCallListener;
what exactly is not working in your case?
cc @ccvlad
@LoknathPraj please provide us with more information such as logs, ConnectyCube SDK version, steps to reproduce, what devices are you using etc. what would be helpful to solve the issue
i'm using this version and i'm getting this error while opening the screen
"react-native-connectycube": "^3.28.0",
@LoknathPraj can you provide a code where you define this._onCallListener
It seems it's undefined
Also, will it work if do like this:
ConnectyCube.videochat.onCallListener = (session, extension) => {
};
?
Also, will it work if do like this:
ConnectyCube.videochat.onCallListener = (session, extension) => { };
?
Hi tried this as well but still getting same error.
Do i need to install the webrtc plugin
also i have installed webrtc but in this case the application is being crashed on open
@LoknathPraj You don't need to install the "react-native-webrtc" separately via npm or yarn. Remove it from your "package.json". You need to install "react-native-connectycube" that has the "react-native-webrtc" as self-dependency. Read the guide to connect WebRTC for your React Native iOS and Android projects.
Make sure that:
I checked again everything is configured properly.
i found that the plugin is not importing properly or might there is some problem in the plugin .
Getting couldnot found the declaration error
npm i --save-dev @types/react-native-connectycube --force
i tried the above command as well. In this i'm getting
This project doesn't have types.
Declare it in your declaration file. Create a file "modules.d.ts" if not exists:
// for "modules.d.ts"
declare module 'react-native-connectycube';
@LoknathPraj are you able to share your project?
@LoknathPraj are you able to share your project?
sorry i can't share the project. because of the security reason
This project doesn't have types.
Declare it in your declaration file. Create a file "modules.d.ts" if not exists:
// for "modules.d.ts" declare module 'react-native-connectycube';
Thank you let me try this too
Hi , i'm not using type script in my project.
i'm using folowing version in the project:-
"react": "16.9.0", "react-native": "0.63.0", "react-native-connectycube": "^3.28.0",
Then just ignore the warning about types
Updated code:
ConnectyCube.videochat._onCallListener = this._onCallListener; ConnectyCube.videochat._onAcceptListener = this._onAcceptCallListener; ConnectyCube.videochat._onRejectListener = this._onRejectCallListener; ConnectyCube.videochat._onStopListener = this._onStopCallListener; ConnectyCube.videochat.onUserNotAnswerListener = this._onUserNotAnswerListener; ConnectyCube.videochat.onRemoteStreamListener = this._onRemoteStreamListener;