SendBirdCalls.setListener On Ringing listener
-
App is initiated.
-
App is authenticated.
-
Then the listener is attached
**I have tried attaching the listener before authentication, no errors appeared but listening still was not effective. -
Calls are not showing the below code which is directly from the SendBird Documentation
SendbirdCalls.setListener({
async onRinging() {
const directCall = await SendbirdCalls.getDirectCall(callProps.callId);
const unsubscribe = directCall.addListener({
onEnded() {
unsubscribe();
},
});
directCall.accept();
}
});
According to the documentation I should be able to see the calls coming in.
Notifications are setup but for foreground notifications and I am not testing for background notifications at the moment.
I can also confirm I am now even getting notificaitons on android when a call is coming in but the listener is still not showing setup.
This is a log of my module to show how it looks after attempting to setup a listener
LOG {
"binder": {
"_nativeModule": {
"NATIVE_SDK_VERSION": "1.12.1"
},
"_nativeEventEmitter": {
"_nativeModule": {
"NATIVE_SDK_VERSION": "1.12.1"
}
},
"_jsEventEmitter": {
"eventPool": {
"sendbird.call.default": {}
}
},
"_supportedNativeEvents": [
"sendbird.call.default",
"sendbird.call.direct",
"sendbird.call.group"
]
},
"_applicationId": "E0359678-179B-4F40-8663-BD202C4C4151",
"_initialized": true,
"_currentUser": {
"profileUrl": "",
"metaData": {},
"nickname": "Gary Benjamin",
"isActive": true,
"userId": "*******"
},
"_sendbirdCallListener": {}
}
** I can confirm connection to the sever because my user can call out to other users.**
[SDK Version]
React native SDK 1.1.14
Android sdk 1.12.1
[Reproduction Steps]
Create an app. add Sendbird calls as well as the chat Uikit for React Native.
Set the listener(SendBirdCalls.setListener) and look for any updates with a console.log.
[Frequency]
Always
[Current impact]
This is completely freezing our ability to utilize chats and calls in the same application.