onfido-sdk-ui
onfido-sdk-ui copied to clipboard
Passport capture page defaults to phone front cam
What was the expected behaviour?
The phone should default to using the camera on the back to take a photo of the passport
What happened instead?
Defaulted to selfie cam
Version info:
- Onfido SDK 6.15.1
- OS Android 9
- Browser Brave
- Device Samsung Galaxy Note 8
- Node n/a
- Framework or relevant dependencies (if applicable) React 17
Integration configuration:
{
type: STEP_DOCUMENT,
options: {
forceCrossDevice: true,
useLiveDocumentCapture: true,
uploadFallback: true,
documentTypes: {
passport: true,
national_identity_card: true,
driving_licence: false,
residence_permit: false,
},
},
}
Steps to reproduce:
Go to the step that asks for a photo of your passport.
Demo:
I can email you a link if required.
As a workaround I can wait for this question to pop up, and then switch to basic camera mode
In basic camera mode I can manually toggle between front and back camera.
We recently upgraded from 6.12 to 6.15.1. I think that's when this happened.
Hi @TobbeLundberg, does the issue also happen in Chrome? We don't officially support Brave
Tried in Chrome. It got the right camera. Tried in Brave again, now Brave also got the right camera. So apparently it's not happening every time...
It was one of our customers who reported it first. I'll see if I can ask what browser he/she used.
Another thing I noticed when checking the camera was that the dark semi-transparent overlay is misaligned, both in Brave and Samsung Browser. It's too high up, so it doesn't cover the screen properly at the bottom.
"iPhone 7" is all I know from the customer right now. Trying to ask for more info, but you never know if you're going to get any or not...
The customer said they're using Chrome.