react-native-sdk icon indicating copy to clipboard operation
react-native-sdk copied to clipboard

Connection timeout appearing when User denies iOS permission

Open hannigand opened this issue 2 years ago • 1 comments

When a User attempts to perform a liveness check and they deny the iOS permission for the microphone, they are greeted with a "Connection timeout" screen and the button to reload the instructions does not do anything.

I would expect the microphonePermission Onfido.OnfidoFlowError to be thrown so that the error can be explicitly handled by the App. My expectation comes from a previous screen within the App where I deny the camera permission and the OnfidoFlowError is thrown (tested separately).

SDK Version and React Native Version:

"@onfido/react-native-sdk": "5.0.0",
"react-native": "0.65.1",

Repro:

Use the following config to start the SDK

Onfido.start({
    "flowSteps": {
        "captureFace": {
            "type": "VIDEO"
        },
        "welcome": false
    },
    "localisation": {
        "ios_strings_file_name": "Localizable"
    },
    "sdkToken": "TOKEN"
});

Steps:

  1. Start the SDK.
  2. When prompted for the microphone permission, click Don't Allow.

https://user-images.githubusercontent.com/5614282/158411444-644213b3-ec78-44af-b552-3c4fc8aecfdc.mp4


When the button is pressed, I see this log in XCode. This may not be of use but every little piece of detail is good to know for debugging.

2022-03-15 15:45:21.592599+0000 bb2[783:88134] TrustKit log: Proxy-ing NSURLSessionDelegate: Onfido.PinningURLSessionDelegate
Swinject: Resolution failed. Expected registration:
	{ Service: (Event) -> (), Factory: (Resolver) -> (Event) -> () }
Available registrations:

hannigand avatar Mar 15 '22 15:03 hannigand