iOS Setup
このコンテンツはまだあなたの言語で利用できません。
On iOS, passkeys only work when the app is associated with the same relying-party domain as the website.
What the plugin handles
Section titled “What the plugin handles”After you add the plugin config and run bunx cap sync, the plugin patches the generated iOS host project so you do not need to keep editing it manually:
- adds the
webcredentials:associated domains entries for the configured domains - wires
CODE_SIGN_ENTITLEMENTSwhen the generated app target does not already point at an entitlements file
What you still need to host
Section titled “What you still need to host”You must publish apple-app-site-association on the relying-party domain:
https://signin.example.com/.well-known/apple-app-site-associationExample:
{ "webcredentials": { "apps": ["ABCDE12345.app.capgo.passkey.example"] }}Checklist
Section titled “Checklist”- Set
originanddomainsinplugins.CapacitorPasskeyincapacitor.config.*. - Run
bunx cap sync. - Confirm your Apple Team ID and app bundle ID, then build the
TEAMID.bundleIdvalue for the association file. - Host
apple-app-site-associationwith HTTP200and no.jsonextension. - Make sure the relying-party ID used by your backend matches the associated domain.
- The website file must be served from the exact passkey domain you use as the relying-party ID.
- On iOS 17.4 and newer, the plugin uses the browser-style client-data API so the configured HTTPS origin is reflected in
clientDataJSON. - The plugin can patch native project files during sync, but it cannot create or host the website association file on your domain.