cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error receiving push notifications

descoba
Occasional Contributor

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?

6 REPLIES 6

Alex_Sberna
Employee
Employee

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,

Alex Sberna, Documentation Engineer

descoba
Occasional Contributor

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

 

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

Alex Sberna, Documentation Engineer

descoba
Occasional Contributor

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.

descoba
Occasional Contributor

Hi Alex, sorry for the inconvenience. Any updates?

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,

Alex Sberna, Documentation Engineer