내용으로 건너뛰기

안드로이드 설정

GitHub

플러그인이 처리하는 내용

플러그인 구성이 추가된 후에 실행

플러그인이 처리하는 내용

설치 단계, Sync, 그리고 소스 마크다운 가이드가 포함됩니다. bunx cap syncAndroid 호스트 프로젝트를 생성하는 동안 플러그인은 다음과 같은 작업을 수행합니다:

  • injects the asset_statements manifest metadata
  • 생성된 문자열 리소스를 참조하는 메타데이터에 대한

호스팅을 위해 여전히 필요합니다

호스팅을 위해 여전히 필요합니다

Section titled “호스팅을 위해 여전히 필요합니다” assetlinks.json 다음과 같은 작업을 수행해야 합니다:

https://signin.example.com/.well-known/assetlinks.json

클립보드에 복사

[
{
"relation": [
"delegate_permission/common.handle_all_urls",
"delegate_permission/common.get_login_creds"
],
"target": {
"namespace": "android_app",
"package_name": "app.capgo.passkey.example",
"sha256_cert_fingerprints": [
"AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF:00:11:22:33:44:55:66:77:88:99"
]
}
}
]

클립보드에 복사하기 위해 클릭하세요: Checklist

Checklist
  1. 설정 origin and domainsplugins.CapacitorPasskeycapacitor.config.*.
  2. 실행 bunx cap sync.
  3. 실제 Android 패키지 이름을 사용하세요. assetlinks.json.
  4. 모든 서명 인증서 지문을 추가하세요. debug 또는 내부 서명 키도 포함하세요. 테스트하는 빌드에 대해.
  5. 파일을 동일한 도메인에서 호스팅하세요. Relying-party ID를 사용하는 도메인과 동일한 도메인입니다.

설정 clientDataJSON.

  • A normal Android app does not behave like a privileged browser.
  • Assertion origin can be tied to the Android app signature instead of your website origin.
  • If your backend strictly validates clientDataJSON.origin, accept the Android app origin alongside the website origin.

If you are using Android Setup to plan authentication and account flows, connect it with Using @capgo/capacitor-passkey for the native capability in Using @capgo/capacitor-passkey @capgo/capacitor-social-login 구현 세부 사항에 대한 @capgo/capacitor-social-login @capgo/capacitor-passkey 구현 세부 사항에 대한 @capgo/capacitor-passkey @capgo/capacitor-native-biometric 구현 세부 사항에 대한 @capgo/capacitor-native-biometric, 그리고 두 단계 인증 구현 세부 사항에 대한 두 단계 인증.