ios – Azure Communication Calling SDK crashes on begin name
[ad_1]
I’m making an attempt to begin a one on one name utilizing Azure CommunicationCalling sdk. I get a crash inside one of many sdk features as proven in screenshot for backtrace under.
Code for begin name:-
func startCall(callee: String, successHandler: @escaping (Name?) -> Void ) {
// begin name logic
debugPrint(callee)
let callees:[CommunicationIdentifier] = [createCommunicationIdentifier(fromRawId: callee)]
debugPrint(callees)
self.callAgent?.startCall(contributors: callees, choices: StartCallOptions()) { (name, error) in
if let error = error {
debugPrint(error.localizedDescription)
successHandler(nil)
} else {
self.name = name
debugPrint("name positioned efficiently")
successHandler(name)
}
}
}
I’ve verified that decision agent and communication identifier arr obj handed will not be nil.
Crash log:-
*** Terminating app as a result of uncaught exception ‘NSInvalidArgumentException’, purpose: ‘*** -[__NSArrayM insertObject:atIndex:]: object can’t be nil’
terminating with uncaught exception of kind NSException
I’ve referred to following documentation:-
https://be taught.microsoft.com/en-us/azure/communication-services/quickstarts/ui-library/get-started-composites?tabs=kotlin&pivots=platform-ios
[ad_2]