Skip to content

2.3.1

Pre-release
Pre-release

Choose a tag to compare

@EDLuke EDLuke released this 23 Nov 14:42
ea55288

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.remoteUnlockMethods lists the methods each lock supports. Progress and results arrive through listenForUnlockEvents() as .remoteIntercom or .remoteDoorScout events. 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 takes timeZone and remoteUnlockMethods, and DOORClient has three new requirements. Code that creates Lock values directly or conforms to DOORClient (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 gets IntercomSettingsError.noPhoneNumber.
  • Lock time zone. Lock.timeZone gives 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, setupWithToken throws SetupError.setupInternalError instead of crashing the app. Calls that need a finished setup then throw SDKError.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 setupWithToken threw SetupError.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.