Open fukemy opened 3 years ago
hi, can u help me explain this problem, i can not found anything with above logs
i found the delegate for CXProvider is not called
performStartCallAction -> not call
im tried to debug then found that im using 2 CXProvider. May be it conflict
APPDELEGATE
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
print("didFinishLaunchingWithOptions")
pushRegistry.delegate = self
pushRegistry.desiredPushTypes = [.voIP]
firebaseConfig(application)
commonConfig()
//SIP regiter
DDLogWrapper.setup()
setupSIPCallKit()
setupLogCallBack()
setupVoIPEndpoint()
setupAccount()
// setupIncomingCallBlock()
// #if DEBUG
// #else
// CrashEye.add(delegate: self)
// #endif
callObserver = CXCallObserver()
callObserver.setDelegate(self, queue: nil)
Siren.shared.wail()
Keyboard.setup() {
let kbHeight = Keyboard.height() // != 0 :)
print("appdelegate kbHeight: \(kbHeight)")
}
if let _ = CallManager.sharedInstance.currentCall{
//app is open when have calling, so do not loop through splash screen to avoid re-set rootViewController
initiateFirstScreen("HomeVC", storyboardName : "main")
}else{
initiateFirstScreen("SplashScreen", storyboardName : "sheet")
}
return true
}
class CallManager: NSObject, CXProviderDelegate {
var provider : CXProvider?
var callController : CXCallController?
var currentCall : CallInfoModel?
var callBackgroundHandlerIdentifier : UIBackgroundTaskIdentifier?
weak var delegate : CallManagerDelegate?
override init() {
super.init()
providerAndControllerSetup()
}
static let sharedInstance = CallManager()
Can u give me some advice? Thanks so much
Version
3.7.3
File / Feature
no file
Expected behavior
call state must have connecting state
Actual behavior
get call state null only
Stacktrace / Error message
this problem sometimes appear, not always