Skip to content

iOS SDK 1.2.1

SDK Installation

  1. Download the iOS SDK and sample code here.
  2. Unzip the downloaded SDK zip file to a folder in your local drive.

Sample Code

The quickest and simplest way to kickstart your journey with the iOS SDK is by downloading and experimenting with our sample code. Follow these steps to open the sample project:

  1. Install the dependencies

    console
    cd demo
    pod install
  2. Open the project

    console
    open VitalSignApp.xcworkspace

IMPORTANT

In the demo code, the strings __YOUR_USER_ID__ and __YOUR_API_KEY__ should be replaced by your own User ID and API Key repectively. Please contact us to obtain your User ID and API Key.

Project Integration

Update the deployment target in Podfile:

ruby
platform :ios, '15.5'

Add the SDK pod to the Podfile:

ruby
target 'YourApp' do
  # ...
  pod 'VitalSignSDK', :path => '/downloaded/sdk/path/sdk'
  # ...
end

Also in the Podfile file, update the line use_frameworks! to:

ruby
use_frameworks! :linkage => :static

Add the following to the Podfile file for the iOS simulator support:

ruby
post_install do |installer|
  installer.pods_project.targets.each do |target|
    target.build_configurations.each do |config|
      # Support x86_64 simulator only
      config.build_settings['ARCHS[sdk=iphonesimulator*]'] = 'x86_64'
    end
  end
end

IMPORTANT

Please note that for iOS, the minimum deployment target is 15.5.

Camera Permission

When developing for iOS, you need to allow the app to use the camera by specifying the following in the file Info.plist:

xml
<key>NSCameraUsageDescription</key>
<string>Use for measuring vital signs</string>

TIP

In Info.plist, the string "Use for measuring vital signs" is an example description of the camera usage. You should specify your own description that matches the usage of your application.

What's New

1.2.1 (5-Sept-2025)

  • Fixed the problem that the blink detector is not working.

1.2.0 (4-Sept-2025)

  • Introduced SdkCredentials, providing a new method for setting the API key and user ID.
  • Added PrecisionMode. The relaxed mode uses the V1 server and performs measurements in best-effort mode. The strict mode uses the V2 server, offering high-accuracy measurements but requiring higher device performance.
  • Various bug fixes and improvements.