Add the SDK to Your App

View this page for | |

The recommended development environment is:

  • Apple Xcode® (latest available version)
  • The minimum target version supported by the SDK
    is iOS 12.0

Use the SDK v5.9 in your App

The HID Approve SDK is delivered as a XCFramework bundle (HID_Approve_SDK.xcframework). It is available in the iOS/Libraries folder of the delivery package.

In order to facilitate testing during the development process, this XCFramework bundle also provides the iOS simulator binaries.

  1. Copy the XCFramework bundle (content of the iOS/Libraries folder) to your preferred libraries location.
  2. In your Xcode target, add the XCFramework bundle to your project Frameworks, Libraries and embedded contents setting.

Add Functions to your App

Managing Persistent Data

  • For iOS, the HID Approve SDK stores it's persistent data in several databases in the iOS application sandbox.

    This persistent data can be removed by either:

    • Resetting the HID Approve SDK with the dedicated HIDDeviceFactory.reset() method - all the data will be removed (existing containers, keys...)

    • Uninstalling the application

  • For macOS, the HID Approve SDK stores it's persistent data in several databases in the SearchPathDirectory > librarydirectory and SearchPathDomainMask > userdomainmask directories of the application (for further information, go to https://developer.apple.com/documentation/foundation/filemanager)

    Note: These directories will remain on the macOS workstation even after the application is uninstalled. As an integrator, you must make sure the SDK's persistent data is correctly removed. The typical persistent data path is Users/%username%/Library/Containers/%appbundlename%.