socure-inc / socure-docv-sdk-ios

iOS library for the Socure's Document Verification Product - DocV
Other
7 stars 4 forks source link

Receive the following hang risk while running the SDK #11

Closed sameertotey-greenwood closed 1 year ago

sameertotey-greenwood commented 1 year ago

-[AVCaptureSession startRunning] should be called from background thread. Calling it on the main thread can lead to UI unresponsiveness

buraksocure commented 1 year ago

Hi @sameertotey-greenwood

Thanks for reaching out. Based on my knowledge, we create our own sync queue to run AVCaptureSession and we do this for thread safety. But I'll discuss this with my engineering team and provide you more information. In the meantime, would you please reach out through dse@socure.com. Thank you!

let queue = DispatchQueue(label: "com.socure.sdk.camera-queue", qos: .userInitiated, attributes: [], autoreleaseFrequency: .workItem))

empowerRyanFerrell commented 1 year ago

Resolved in 3.2.0