Skip to content

feat(verifier): require SDK Tethering in iOS/Android verifier sample apps#303

Merged
avner-m merged 2 commits into
masterfrom
docs/verifier-sdk-tethering
Jun 26, 2026
Merged

feat(verifier): require SDK Tethering in iOS/Android verifier sample apps#303
avner-m merged 2 commits into
masterfrom
docs/verifier-sdk-tethering

Conversation

@avner-m

@avner-m avner-m commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates the in-person and remote (app-to-app) verifier sample apps for the Verifier SDK breaking changes shipped in iOS Verifier SDK v6.0.0 and Android Verifier SDK v7.0.0, the headline being that SDK Tethering is now required.

Companion to the MATTR Learn PR mattrinternal/mattr-learn#789, which documents the same migration. React Native and web verifier sample apps are intentionally out of scope (the React Native Verifier SDK is not tethered).

Changes

In-person (proximity)

  • Android (android-in-person-verifier-tutorial-sample-app): initialize with a PlatformConfiguration (tenantHost + applicationId); handle the new FailedToRegisterException / InvalidLicenseException; treat MobileCredentialResponse.credentials / .credentialErrors as non-null lists; bump global.mattr.mobilecredential:verifier to 7.0.0.
  • iOS (ios-in-person-verifier-tutorial-sample-app): initialize is now async and takes a PlatformConfiguration; add tenantHost / applicationId constants; handle failedToRegister / invalidLicense; rename verificationResult.reason.failureType.

Remote (app-to-app / OID4VP)

  • Android (android-remote-verification-tutorial-sample-app): supply applicationId via PlatformConfiguration (removed from requestMobileCredentials); handle the now-sealed OnlinePresentationSessionResult (Success / Failure) with when/is; tethering error handling; bump verifier to 7.0.0.
  • iOS (ios-remote-verification-tutorial-sample-app): applicationId via PlatformConfiguration (removed from requestMobileCredentials); async initialize; rename .reason.failureType.

Notes

  • Tenant host and Verifier Application id are left as placeholders (https://your-tenant.vii.mattr.global / <YOUR_VERIFIER_APPLICATION_ID>) for developers to fill in, consistent with the existing sample-app conventions.
  • Code patterns were validated against the iOS/Android SDK dev branches. Builds were not run locally as the SDK distributions are added out of band per each app's README.

🤖 Generated with Claude Code

… apps

Update the in-person and remote verification sample apps for the Verifier SDK
breaking changes (iOS Verifier 6.0.0, Android 7.0.0). React Native and web
verifier apps are out of scope for this change.

In-person (proximity):
- android: initialize with a PlatformConfiguration (tenantHost + applicationId),
  handle FailedToRegister/InvalidLicense, bump verifier dependency to 7.0.0,
  treat MobileCredentialResponse.credentials/.credentialErrors as non-null
- ios: async initialize with PlatformConfiguration + tethering error handling,
  add tenantHost/applicationId constants, rename verificationResult.reason to
  .failureType

Remote (app-to-app / OID4VP):
- android: supply applicationId via PlatformConfiguration (removed from
  requestMobileCredentials), handle the new sealed OnlinePresentationSessionResult
  (Success/Failure), tethering error handling, bump verifier dependency to 7.0.0
- ios: applicationId via PlatformConfiguration (removed from
  requestMobileCredentials), async initialize, rename .reason to .failureType
@avner-m avner-m requested a review from a team as a code owner June 22, 2026 23:02
…ote sample

From iOS Verifier SDK v6.0.0, OnlinePresentationSessionResult is a @Frozen
enum with success(sessionId:challenge:mobileCredentialResponse:) and
failure(sessionId:challenge:error:) cases. Replace the old nullable
struct-property access with switch/case, matching the Android sample and the
v6.0.0 migration guide.
@avner-m avner-m merged commit 1bf8064 into master Jun 26, 2026
2 checks passed
@avner-m avner-m deleted the docs/verifier-sdk-tethering branch June 26, 2026 01:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants