ConnectyCube / connectycube-flutter-call-kit

A Flutter plugin for displaying call screen when the app in the background or terminated.
https://developers.connectycube.com/flutter
Apache License 2.0
57 stars 83 forks source link

incoming call notification is not appearing when a call is triggered. #146

Closed muj-i closed 7 months ago

muj-i commented 7 months ago

Just showing this log in the console, but the CallKit incoming call notification is not coming.

log

TatankaConCube commented 7 months ago

Please, check the data types first. Here are the expected types on the iOS side but Android expects the same:

let callId = callData["session_id"] as! String
let signalingType = callData["signal_type"] as? String
let callType = callData["call_type"] as! Int
let callInitiatorId = callData["caller_id"] as! Int
let callInitiatorName = callData["caller_name"] as! String
let callOpponentsString = callData["call_opponents"] as! String
let callOpponents = callOpponentsString.components(separatedBy: ",").map { Int($0) ?? 0 }
let userInfo = callData["user_info"] as? String

Also, pay attention to the session_id should be the valid UUID string.

muj-i commented 7 months ago

ok go it. now there is a another issue that is. if i tap on the incoming calling notification.it should show the full screen incoming calling ui right? but it just dismissing the notification. any solution for that?

TatankaConCube commented 7 months ago

it should show the full screen incoming calling ui right?

no, the app should launch or move to the foreground on Android and the fullscreen should open on the iOS

muj-i commented 7 months ago

ok got it, now there's another issue

when the android app is in the terminated state it is unable to trigger the callkit notification incoming call. and it logs this

log