iOS SDK 1.2.1
SDK Installation
- Download the iOS SDK and sample code here.
- 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:
Install the dependencies
consolecd demo pod installOpen the project
consoleopen 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:
platform :ios, '15.5'Add the SDK pod to the Podfile:
target 'YourApp' do
# ...
pod 'VitalSignSDK', :path => '/downloaded/sdk/path/sdk'
# ...
endAlso in the Podfile file, update the line use_frameworks! to:
use_frameworks! :linkage => :staticAdd the following to the Podfile file for the iOS simulator support:
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
endIMPORTANT
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:
<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.