iPhone 14 Pro issues with card.io-iOS-SDK scanning Credit Card Number.

After testing our app (min deployment iOS 13) on a iPhone 14 Pro iOS version 16.2 the card io SDK brings up the camera however the device is unable to scan the credit card.

We have tested the same SDK on other devices with iOS 16.2 and it works.

Apple have admitted a bug with the camera in the Pro and Pro Max models.

Is anyone else facing these issues?

And is there a fix?

A link to the SDK.

https://github.com/card-io/card.io-iOS-SDK

Thanks.

Looks like card.io SDK is using OpenCV library which has a pretty old code to initialize iOS camera which just uses default camera for video which defaults to wide-angle camera on dual and triple camera equipped iOS devices. See OpenCV iOS Camera Initialization Code

On iPhone 14 Pro (Max) however the wide angle camera has a higher minimum focal length of 200 mm which is different as compared to its predecessors where it is typically 150 mm. So, on these newer devices it would be safer to choose either builtInDualCamera or builtInTripleCamera instead of using default wide angle camera which would ensure that iOS automatically switches from wide angle to ultra wide angle if necessary to maintain focus.

iPhone 14 Pro issues with card.io-iOS-SDK scanning Credit Card Number.
 
 
Q