What problem does it solve?
Sensorkit helps you access research-grade iOS and watchOS sensor data for approved studies, without relying on general-purpose sensor APIs, while ensuring you meet Apple entitlement and authorization requirements.
Core Features & Use Cases
- Research-only sensor access: Collects ambient light, motion, device usage, keyboard metrics, media events, and health-related streams for studies that have been approved by Apple.
- Per-sensor entitlement + user authorization: Requires the
com.apple.developer.sensorkit.reader.allow entitlement and per-sensor Research Sensor & Usage Data consent.
- Record and fetch time-ranged samples: Supports starting/stopping recording and fetching prior recorded data via
SRSensorReader and SRFetchRequest, including device-specific fetches.
- Study constraints & guardrails: Handles key operational constraints such as the 24-hour holding period for newly recorded data and the need for delegates to receive results.
Quick Start
Request SensorKit authorization for the specific sensors your approved study needs, then start recording and fetch results for a time range that is at least 24 hours old.