Is it possible to replicate Android OS camera's passkey scan qr code capability in custom app?

130 views Asked by At

When I scan Passkey QR code via Android OS camera, I get a popup saying Connect to QR code and then
QR code scan process. This initiates BLE tunnel connection between Chrome and device(which is scanning QR code).

Is there a way to trigger this flow from a custom app? When I scan Passkey QR code value, I am able to decode it's CBOR value, but I am not able to find a way to trigger Android OS camera flow with the QR code information.

Is it even possible? Can only Android OS camera app do it? Any pointers or redirections would be appreciated?

I looked for functionality that lets you initiate a BLE connection using the same flow that Android OS camera uses.

1

There are 1 answers

5
Tim On

Are you creating an app that can use passkeys for sign in (standard app), or a passkey provider (authenticator)?

Cross-Device Authentication uses a platform-implemented transport. You don't need to do anything in your app except call the credential manager APIs to request a sign in.