Skip to content

Credential Provider doesn't work correctly in the Emulator #123

Open
@johnlister

Description

@johnlister

I've built the Credential Provider sample, however I can't get the passkey functionality to work in the emulator using the standard Google Play image (Android 14 or 15). I've installed a screen lock (PIN), enabled it as the preferred provider (also made sure google PM is disabled) and disabled chrome using its own password manager. If I try to create (or get) a webauthn Credential using a test site like webauth.me(ensuring requireResidentKey is set), my service entry points (beginCreate... and beginGet...) are never called. Note I haven't logged into any accounts (google or otherwise) at this point

However doing similar steps on a physical device works as expected? Is there anything I'm missing or that is needed to enable a third party credential manager? Is there any limits in the emulator that would block its use? Specifically, I'm thinking about automated tests, etc

Update to the above - it looks like I need to be signed in with a google account before I can use passkeys with or without a third party credential provider - without being signed in, it looks like it has saved the passkey internally, but there are no options available to authenticate

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @johnlister

        Issue actions

          Credential Provider doesn't work correctly in the Emulator · Issue #123 · android/identity-samples