Repository navigation
2.3.1
Pre-release
Pre-release
OpenDOOR iOS SDK — 2.3.1
New Features
- Remote unlock. Unlock a door remotely through its intercom or a DoorScout with
remoteUnlock(lockID:method:).Lock.remoteUnlockMethodslists the methods each lock supports. Progress and results arrive throughlistenForUnlockEvents()as.remoteIntercomor.remoteDoorScoutevents. New error cases cover an unsupported method, a remote unlock that isn't allowed, one already in progress, a failure reported by the door, and no result in time.⚠️ Breaking change:Lock's initializer now takestimeZoneandremoteUnlockMethods, andDOORClienthas three new requirements. Code that createsLockvalues directly or conforms toDOORClient(for example test doubles) must be updated.
- Intercom call settings.
getIntercomSettings()returns the user's intercom call preference and phone number for each building.enableIntercomPhoneCalls(buildingID:)opts the user in to intercom calls by phone. A user with no phone number on file getsIntercomSettingsError.noPhoneNumber. - Lock time zone.
Lock.timeZonegives each lock's time zone.
Improvements
⚠️ Breaking change: iOS 16 is now the minimum. The SDK previously supported iOS 13.- Privacy: nothing identifies the user before consent. The user is identified to analytics, and their ID is attached to SDK logs, only after they agree to the consent prompt. A user who declines is never identified.
- No crash when local storage can't load. If the SDK's local storage can't load,
setupWithTokenthrowsSetupError.setupInternalErrorinstead of crashing the app. Calls that need a finished setup then throwSDKError.sdkInternalError. - Complete API reference. Every public type and member is documented, and the DocC archive ships with each release.
NetworkError.payloadError's description now reads "Network error with a message from the server: …". Update any code that matches on the old text.
Bug Fixes
- Signing out with
clear(), or setting up the SDK for a different user, could delete the host app's own keychain passwords. The SDK now deletes only its own items. - Tapping Terms of Service or Privacy Policy in the consent prompt closed it and counted as a decline, so
setupWithTokenthrewSetupError.consentNotGranted. The prompt now stays open until the user taps Agree or Disagree. - Doorcode invites for "Today" or "Tomorrow" are now computed in the lock's time zone, not the phone's. Before, a phone in a time zone ahead of the lock's could get a "Tomorrow" code that was already valid today at the lock.