Skip to content

[passkeys] android-no-create-option handling #225

@wederchr

Description

@wederchr

I sometimes encounter an issue with my users where the plugin returns a PlatformException(code: 'android-no-create-option') even though a password manager that supports passkeys is configured on the device. The solution is usually to go to system settings -> passwords, passkeys & accounts, disable the preferred service by selecting None and then re-enabling it. Unfortunately I cannot reproduce this error on my devices. So I'm wondering:

  1. Is this a known issue on Android devices?
  2. If yes: is this something that could be fixed maybe in the android implementation of the passkeys plugin?

Also, here's an example of the PublicKeyCredentialCreationOptions passed to the plugin:

{
  "rp": { "id": "<redacted>", "name": "<redacted>" },
  "user": {
    "id": "<redacted>",
    "name": "<redacted>",
    "displayName": ""
  },
  "hints": [],
  "timeout": 60000,
  "challenge": "<redacted",
  "extensions": { "credProps": true },
  "attestation": "none",
  "pubKeyCredParams": [
    { "alg": 0, "type": "public-key" },
    { "alg": 0, "type": "public-key" },
    { "alg": 0, "type": "public-key" }
  ],
  "excludeCredentials": [],
  "authenticatorSelection": {
    "residentKey": "preferred",
    "userVerification": "required",
    "requireResidentKey": false,
    "authenticatorAttachment": "platform"
  }
}

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

    Issue actions