Skip to main content
Version: 2.0.0

iOS Integration Guide

This guide walks you through integrating the Impilo Mobile SDK into your iOS application.

Requirements​

  • iOS 13.0+
  • Xcode 14.0+
  • Swift 5.7+

Installation​

Swift Package Manager​

Add the Impilo Mobile SDK to your project using Swift Package Manager:

  1. In Xcode, go to File > Add Package Dependencies
  2. Enter the package URL (provided by Impilo)
  3. Select the version you want to use
  4. Click Add Package

Import the SDK​

import ImpiloMobileSDK

Configuration​

Info.plist Setup​

Add the following keys to your Info.plist for Bluetooth and HealthKit access:

<key>NSBluetoothAlwaysUsageDescription</key>
<string>This app uses Bluetooth to connect to health monitoring devices.</string>

<key>NSBluetoothPeripheralUsageDescription</key>
<string>This app uses Bluetooth to connect to health monitoring devices.</string>

<key>NSHealthShareUsageDescription</key>
<string>This app reads health data to provide insights.</string>

<key>NSHealthUpdateUsageDescription</key>
<string>This app writes health data to keep your records updated.</string>

Enable HealthKit Capability​

  1. Select your project in Xcode
  2. Go to Signing & Capabilities
  3. Click + Capability
  4. Add HealthKit

Initialize the SDK​

import ImpiloMobileSDK

let config = ImpiloMobileSDK.Config()

do {
let sdk = try ImpiloMobileSDK.initialize(config: config)
// SDK is ready to use
} catch {
print("Failed to initialize SDK: \(error)")
}

Next Steps​

  • Read the SDK Guide for detailed usage instructions
  • Learn about device discovery and pairing
  • Integrate with Apple Health

Need Help?​

For support or additional device integration requests, reach out to sales@impilo.health.