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

Problem with onIncomingCall function service SDK 6.0.2 Android -Kotlin

Jeims
Occasional Contributor

I've been update my sdk sinch to 6.0.2  but i have a problem with the  onIncomingCall function it is not replying whereby i can not receive video calls , i did it update base on documentation  https://developers.sinch.com/docs/in-app-calling/getting-started/android/create-app/ ,  I have all the same construction

Note: I am working with  Android-Kotlin , I show my main activity…


var serviceBinder: SinchService.SinchServiceBinder? = null

private fun setSinchService(){
val user = SessionHelper.getUserId(this)
serviceBinder?.start(user.toString())
}

override fun onServiceConnected(
componentName: ComponentName?,
binder: IBinder?,
) {
serviceBinder = binder as SinchService.SinchServiceBinder?
serviceBinder?.setClientInitializationListener(this)
setSinchService()
serviceBinder?.addCallControllerListener(this)

}
override fun onStartedSuccessfully() {
Log.d("Prueba-Conexion", "onStartedSuccessfully")
}

override fun onFailed(error: SinchError) {
Log.e("Prueba-Conexion", "SinchClientInitializationListener error $error")
}

My connection with my class SinchService  to main activity is successfully

 

2023-03-28 15:01:24.805 15855-15855 Prueba-Conexion com...alsoftm.gs_app_express_dating D onStartedSuccessfully

I hope that your can help me

3 REPLIES 3

Roland_Ian
Employee
Employee

Hi Jeims,

 

Sorry to hear you are having issues, looking at your code it seems to deviate from the tutorial, I think the best thing here is to try here is to build the sinch-rtc-sample-video-push in Kotlin packaged with the SDK and try to make and receive a video call using this sample.

 

We package the following set of samples with the SDK:

├── sinch-rtc-sample-hms-push
├── sinch-rtc-sample-pstn
├── sinch-rtc-sample-push
└── sinch-rtc-sample-video-push

 Also please remember to set up the  Push infrastructure before attempting a call also:

https://developers.sinch.com/docs/in-app-calling/android/push-notifications/

 

Check the logcat output in Android studio for initiating a call and receiving a call and it is preferable to test with actual handsets and not using emulators.

 

Regards

 

Roland-Ian

Roland-Ian Clothier, Developer Support Engineer

Shahzad_Ismail
Community Manager
Community Manager

Hi Jeims,

 

If the above information helped you solve your issue - please mark the response above as an Accepted Solution by clicking the Accept as Solution button below the above post.

Thanks and kind regards,

Shahzad Ismail
Head of Knowledge Management and Community Engagement, Sinch

Jeims
Occasional Contributor

Hi Shahzad_Ismail

Thanks so much for you attention , i have revied your answer , I don't have implemented  set up the  Push  so I will do set up the  Push infrastructure  if this solve my isuue , i will mark my post please

 

greetings