sensorkit

Configure SensorKit entitlements and fetch restricted sensor data for approved research studies.

Updated Jun 5, 2026
One-click install
npx skills add https://github.com/harshav167/build-ios-apps --skill sensorkit-harshav167
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sensorkit
Source: https://github.com/harshav167/build-ios-apps/tree/main/skills/sensorkit
Command: npx skills add https://github.com/harshav167/build-ios-apps --skill sensorkit-harshav167

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

SensorKit access is restricted to Apple-approved research studies. This Skill provides a structured way to configure entitlements, request user authorization, and fetch sensor data across iPhone and Apple Watch for approved research contexts.

Core Features & Use Cases

  • Access ambient light, motion, device usage, keyboard metrics, visits, speech metrics, face metrics, wrist temperature, ECG, and PPG data for approved studies.
  • Enforce the required SensorKit entitlement and per-sensor Info.plist usage details; support the standard authorization flow and data fetching with SRDevice, SRFetchRequest, and SRSensorReader.
  • Use cases include sleep research, cognitive/behavioral studies, or physiological monitoring under an Apple-approved proposal.

Quick Start

Configure entitlement, request authorization for the necessary sensors, fetch data from devices, and begin recording once approved.

Frequently Asked Questions about sensorkit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I access SensorKit sensor data for an Apple-approved research study?

SensorKit supports fetching ambient light, motion, device usage, keyboard metrics, visits, speech metrics, face metrics, wrist temperature, ECG, and PPG data for approved studies. Data is held for 24 hours before access, requiring SRSensorReader and SRFetchRequest for retrieval.

Does SensorKit work with watchOS for physiological monitoring research?

To configure SensorKit entitlements, add the com.apple.developer.sensorkit.reader.allow entitlement to your app and include explicit per-sensor usage detail entries in the Info.plist. This setup is strictly required for Apple-approved research contexts.

Why is my SensorKit data fetch delayed by 24 hours?

You should not use SensorKit for studies lacking Apple approval, as access is restricted to Apple-approved research proposals. Additionally, real-time data monitoring is not possible due to the mandatory 24-hour data hold before access.

What is the best way to fetch motion and ambient light data from iPhone for behavioral studies?

The best way to fetch motion and ambient light data from iPhone for behavioral studies is using SensorKit's SRFetchRequest and SRDevice classes. This approach requires Apple approval, user authorization, and proper Info.plist usage details.