Problem with onIncomingCall function service SDK 6.0.2 Android -Kotlin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-28-2023
03:42 PM
- last edited on
03-30-2023
01:45 AM
by
Shahzad_Ismail
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
- Labels:
-
Video
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-29-2023 05:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2023 02:16 AM - edited 03-30-2023 10:03 AM
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,
Head of Knowledge Management and Community Engagement, Sinch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-30-2023 08:09 AM
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
