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:
- In Xcode, go to File > Add Package Dependencies
- Enter the package URL (provided by Impilo)
- Select the version you want to use
- 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
- Select your project in Xcode
- Go to Signing & Capabilities
- Click + Capability
- 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.