WalletDcApiPresentment

Answers the phone's own ID sheet — the W3C Digital Credentials API on Android. A browser calls navigator.credentials.get({ digital: … }), the user picks this wallet in the system sheet, and Credential Manager opens the SDK's screen: consent, the app's share guard (face check), the answer.

Set sdk once at app start, register the documents with com.wallet.registerAsDcProvider, and add the intent-filter to the SDK's activity in your AndroidManifest.xml (the manifest merger adds it to the activity the SDK declares; xmlns:tools="http://schemas.android.com/tools" on the root element):

<activity
android:name="com.wallet.ui.WalletDigitalCredentialsActivity"
android:exported="true"
tools:node="merge">
<intent-filter>
<action android:name="androidx.credentials.registry.provider.action.GET_CREDENTIAL" />
<action android:name="androidx.identitycredentials.action.GET_CREDENTIALS" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
// Application.onCreate
WalletDcApiPresentment.sdk = App.sdk

Properties

Link copied to clipboard

Chrome for Android (release + userdebug signing certificates).

Link copied to clipboard

Browsers trusted to report the web origin (androidx.credentials CallingAppInfo.getOrigin format; Google's full list: gstatic.com/gpm-passkeys-privileged-apps/apps.json). Default: Chrome.

Link copied to clipboard

The wallet whose documents are presented. Set it once at app start (Application.onCreate).