Sendbird onRinging event not triggering

[Problem/Question]
When calling to a react native application i am not receiving any onRinging event even though i am receiving a calling push notification.

It does work sometimes when you reload the app ( while in development ) after you get the call notification. Also it sometimes work when you rolldown the application and roll it back up.

The same issue was posted in these two posts -

Issues with the onRinging Event in @sendbird/calls-react-native - Sendbird Voice/Video Calls / React Native - Sendbird Community

setListener and function onRinging not handle incoming calls - Sendbird Voice/Video Calls / React Native - Sendbird Community

// What version of the SDK are you using?
@sendbird/calls-react-native”: “1.1.2”

[Frequency]
Mostly, rarely it is working.

[Current impact]
Not able to push the app to production.

Hello @Mohib_Arshi , to provide a more accurate response, could you please answer the following question?
On which platform is the onRinging event not working?

Below is a guide on push notifications: GitHub - sendbird/sendbird-calls-directcall-quickstart-react-native: quickstart-calls-directcall-react-native

Please ensure that the execution order of Native and JS is clearly guaranteed so that the event is correctly passed to the SDK.

Thank you.

Hi @Airen_Kang , Thanks for responding.

I am using React Native and building for IOS platform. I am receiving Push notifications but onRinging is not getting triggered.

Thanks for your response @Mohib_Arshi

By default, application(_:didReceiveRemoteNotification:fetchCompletionHandler:) delegate method isn’t called if the client app is in the background or closed. When a remote push notification is delivered to the mobile device, the notification will show as a banner and won’t trigger the delegate method while the app is in the background. If the client app is closed, the payload will be delivered when the user responds to the notification by tapping on it. However, if the client app is in the foreground, the notification will trigger the delegate method immediately.
Therefore, in general, we recommend using VoIP notification for providing a stable service.

hi @Airen_Kang i am unable to trigger onRinging listner in the android too i am using react-native for this

Hello @nikhil, could you please check if FCM is being received properly in the background?

messaging().setBackgroundMessageHandler((message) => {
  console.log('message received in background', message);
  SendbirdCalls.android_handleFirebaseMessageData(message.data);
});