onRinging is not invokded

Hi, I am importing sendbirdcall library into my app.

Unfortunately. onRinging() callback is not called when other user tried to dial my device.
However, onRinging() callback is invoked after the user dials another user. Which means onRinging works perfectly after the current user invokes call dial() at once.

This is sendbird logs I printed

2021-03-24 23:12:08.654 28246-28246/ D/HolicApp: [223][Thread[main,5,main]][initSendBird]sendbirdcall initialized done
2021-03-24 23:12:08.654 28246-28246/ I/SendBirdCalls: [SendBirdCall] removeAllListeners()
2021-03-24 23:12:08.654 28246-28246/ I/SendBirdCalls: [SendBirdCall] addListener(593d8412-4eed-46a5-a3b4-85795155de3e)
2021-03-24 23:12:08.655 28246-28246/ I/SendBirdCalls: [SendBirdCall] setDirectCallDialingSoundOnWhenSilentOrVibrateMode(enabled: true)
2021-03-24 23:12:09.508 28246-28246/ I/SendBirdCalls: [SendBirdCall] authenticate(userId: 348@NQwAQIa)
2021-03-24 23:12:10.202 28246-28246/ I/SendBirdCalls: [SendBirdCall] registerPushToken(pushToken: {some push token}, unique: false)

// tried dial this user but failed… couple of times
// so I tried dial another user

2021-03-24 23:12:20.120 28246-28246/ I/SendBirdCalls: [SendBirdCall] dial()
2021-03-24 23:12:20.417 28246-29343/ I/SendBirdCalls: [CallManager] onDialAckReceived(e: null)
2021-03-24 23:12:20.632 28246-28246/v I/SendBirdCalls: [DirectCall][Caller][5E9EDB71-8D80-4B69-A19C-735E47CA9881] onAudioDeviceChanged(currentAudioDevice: EARPIECE, availableAudioDevices: [EARPIECE, SPEAKERPHONE])
2021-03-24 23:12:20.665 28246-28246/ I/SendBirdCalls: [DirectCall][Caller][5E9EDB71-8D80-4B69-A19C-735E47CA9881] onEstablished()
2021-03-24 23:12:21.382 28246-28246/ I/SendBirdCalls: [DirectCall][Caller][5E9EDB71-8D80-4B69-A19C-735E47CA9881] onConnected()
2021-03-24 23:12:23.476 28246-28246/ I/SendBirdCalls: [DirectCall][Caller][5E9EDB71-8D80-4B69-A19C-735E47CA9881] onEnded() => COMPLETED

// Tried again to dial me from another user. In this case, onRinging callback is called…!
2021-03-24 23:12:24.334 28246-28246/ I/SendBirdCalls: [CallManager] onRinging(callId: 112A7208-D975-4986-B1AC-29F825055C59)

Hi @kwony, Thanks for your interest in Sendbird Calls.

I think the push token is not registered properly or the FCM message is not handed over to the SDK.
Can you confirm that you registered the push token and handed over the FCM message to Sendbird Calls SDK?

FYI, the reason why the call is connected when another user dials is that SDK communicates a dial signal through WebSocket after the initial dial request. (before dial request, it should be done through FCM)

Oops, I registered push token via registerPushToken method but didn’t update FCM api key on dash board. It was a problem.

Thanks for your reply Park.

I’m glad to hear that the problem was solved. If you have any other issues, feel free to reach out to us.

1 Like

hi, i have same problem like you, can you give me detail about the meaning “update FCM API key on dashboard”? Thank you