We use Ionic 5 with Capacitor 3, using the latest iOS version which supports getUserMedia for capacitor scheme.
getUserMedia does work for me, but once i've implemented the CallKit provider, i get:
NotReadableError: The I/O read operation failed
Whenever I answer the call. We've tried deactivating the AudioSession using
audioSession.setActive(false)
inside all these methods:
provider(_ provider: CXProvider, didActivate audioSession: AVAudioSession)
provider(_ provider: CXProvider, perform action: CXAnswerCallAction)
pushRegistry(_ registry: PKPushRegistry, didReceiveIncomingPushWith payload: PKPushPayload, for type: PKPushType, completion: @escaping () -> Void)
Both nothing helps. Is there a priority factor or do i need to do some interruptions?