Closed GireshD closed 1 year ago
Hi Giresh, you'd need to implement CallKit for the notifications of incoming calls while the app is closed.
@maxxfrazer
I tried with VOIP push notification but my app crashed when I accepted the call.
my app crashed here, showing empty lastIncomingInvitation, as I got call from VOIP push notification. guard let last = rtm.lastIncomingInvitation else { fatalError("rtm lastIncomingInvitation") }
code: func accpetLastIncomingInvitation(fail: ErrorCompletion = nil) { let rtm = AgoraRtm.shared()
guard let last = rtm.lastIncomingInvitation else {
fatalError("rtm lastIncomingInvitation")
}
accept(last) {(errorCode) in
guard errorCode == AgoraRtmInvitationApiCallErrorCode.ok else {
if let fail = fail {
fail(AGEError(type: .fail("rtm refuse invitation fail: \(errorCode.rawValue)")))
}
return
}
}
}
please help me on this
hi @GireshD i double checked and we don't have this property/api. what is rtm object instance?
Closing this due to inactivity.
Currently I am using Agora SDK for Audio/Video call. I am not getting call when app is not running. What I need to added to get audio/video call in background or app not running.