CredentialError.userInteractionRequired(action) entries in each credential’s errors array. After activation, observe these errors and handle the specified actions. Errors update automatically as requirements change.
Platform Setup Requirements
First, configure the required platform capabilities.- iOS Swift
- Android Kotlin
-
Suppress Apple Wallet while unlocking with BLE
To prevent the Apple Wallet dialog from appearing when your app uses BLE to unlock a door, do the following:- Add the
requestAutomaticPassPresentationSuppression()call to your app.
This method suppresses Apple Wallet while your mobile app is in the foreground and ensures a smootherunlockWithTapexperience. - Request the
com.apple.developer.passkit.pass-presentation-suppressionentitlement from Apple.
- Add the
-
Enable Bluetooth capability
Add the required Bluetooth key to your app’s entitlements file:
Monitoring Permission Errors
- iOS Swift
- Android Kotlin
Use Combine to watch the published credentials array and handle permission-related errors:The mobile SDK automatically clears resolved permission errors once the required permission is granted, reflecting the updated credential state.
Handling Permission Actions
Implement your handler for each action:- Android Kotlin
- iOS Swift
See also
For a complete SwiftUI-based implementation of credential error handling for iOS, seeSeamUnlockCardView in the SeamComponents library, which demonstrates observing credential errors and updating the UI accordingly.
