09-14-2024 01:37 PM
I am fixing issues with an old Android application written in Kotlin that uses the Sinch service for video calls. However, when FCM was updated, I could no longer receive the notification for an incoming call. Could you help me with the steps to update Firebase data so I can receive these notifications again?
09-16-2024 06:33 AM
Hi descoba,
Recently FCM was updated to use OAuth2 security. This migration guide should show you everything you need to do to get your service working again: https://developers.sinch.com/docs/in-app-calling/android/migration-to-fcm-v1/
Let me know if you have any further questions.
Thanks,
09-16-2024 07:40 PM
Hi Alex, thank you very much for your response
I was able to implement my endpoints in the backend according to the guide you shared with me. However, I have a question: do I need to modify something in my Android application compared to how it worked with the previous version of FCM? I’m still not receiving my call notifications
09-17-2024 09:47 AM
I believe so, yes. This FAQ from google has more information about the deprecated endpoints and what endpoints you should be targeting instead: https://firebase.google.com/support/faq#fcm-23-deprecation
09-24-2024 08:31 PM - edited 09-24-2024 08:32 PM
Hello Alex, thanks again for your response. I am using the SDK in my Android Kotlin app, so I am not sending notifications through the endpoint, but directly from the callUser function.
fun callUser(user_id: String): Call? {
val sinchClient = sinchClient ?: throw RuntimeException("Sinch Client is not created")
return sinchClient.callController.callUser(user_id, MediaConstraints(true))
}
I have implemented everything from the push examples and the documentation, but I’m not sure if I’m missing something since I haven’t been able to receive calls.
09-26-2024 11:39 AM
Hi Alex, sorry for the inconvenience. Any updates?
09-26-2024 11:48 AM
Hi, no inconvenience! Sorry for taking so long to get back with you.
I conferred with the team and they suggested something else might be going on, so they said you should open up a support ticket. The support specialists will be better able to help you troubleshoot and check things.
Thanks,