onfido-sdk-ui icon indicating copy to clipboard operation
onfido-sdk-ui copied to clipboard

Passport capture page defaults to phone front cam

Open TobbeLundberg opened this issue 3 years ago • 6 comments

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

Screenshot_20211028-153215_Brave_2

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.

TobbeLundberg avatar Oct 28 '21 13:10 TobbeLundberg

As a workaround I can wait for this question to pop up, and then switch to basic camera mode

image

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.

TobbeLundberg avatar Oct 28 '21 13:10 TobbeLundberg

Hi @TobbeLundberg, does the issue also happen in Chrome? We don't officially support Brave

stefaniacardenas avatar Oct 28 '21 15:10 stefaniacardenas

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.

TobbeLundberg avatar Oct 28 '21 17:10 TobbeLundberg

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.

Screenshot_20211028-194756_Samsung Internet_2 Screenshot_20211028-194556_Brave_2

TobbeLundberg avatar Oct 28 '21 17:10 TobbeLundberg

"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...

TobbeLundberg avatar Oct 29 '21 20:10 TobbeLundberg

The customer said they're using Chrome.

TobbeLundberg avatar Nov 01 '21 18:11 TobbeLundberg