Hello,
I am stuck with one issue related to Call Receive in iOS. Please check below:
– When an iOS user or Android user is calling to iOS, then we are not getting any notification or call into the iOS device.
– After login with iOS, I have checked on the Sendbird server, and the token is registered on the back-end.
– Application ID =. 183A15D9-E04B-4522-94A2-562D220D5D45
– I have also uploaded certificates on Sendbird and Voip is also enabled.
– We are registering for “registerVoIPPush” for Sendbird Call.
– For Reference:
---- Tokens are logged on server. My Chat and Call iOS tokens are different on Sendbird Backend. That is because, For Chat we are logging the Push-Notification Token. While for Call, we are logging the Voip Token, as per the demo. So I assume that it is correct.
– Below is my authenticate method for your review.
…
//MARK: - Sendbird Login Auth
func sendBirdCallsLoginAuth(userId : String, accessTokens : String)
{
// Authenticate
let authParams = AuthenticateParams(userId: userId, accessToken: nil)
SendBirdCall.authenticate(with: authParams) { (user, error) in
guard user != nil else {
// Failed
DispatchQueue.main.async {
//completionHandler(error ?? CredentialErrors.unknown)
print("sendBirdCallsLoginAuth = \(String(describing: error?.localizedDescription))")
}
return
}
print("sendBirdCallsLoginAuth = \(String(describing: error?.localizedDescription))")
// Succeed
// create credential object with updated information
//let credential = Credential(accessToken: accessTokens)
let credential = Credential(accessToken: nil)
//credential.accessToken
let credentialManager = CredentialManager.shared
credentialManager.updateCredential(credential) // update credential for sendbird call function
print("SendBirdCall registered successfully")
// register push token
SendBirdCall.registerVoIPPush(token: UserDefaults.standard.voipPushToken, unique: false) { error in
if let error = error { print(error) }
print("SendBirdCall.registerVoIPPush registered successfully")
}
}
}
…
Note: When I am calling from iOS to Android, then the call is working and we are connected to each other.
Please guide as soon as possible, so we can execute it further.