[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.
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?
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.
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);
});