
Core Bluetooth
A comprehensive reference for implementing Bluetooth Low Energy in iOS apps, covering both central and peripheral roles. You'll find practical code for scanning, connecting, service discovery, and handling reads, writes, and notifications with Core Bluetooth. The guide includes real examples like parsing heart rate data, proper peripheral retention patterns (easy to mess up), and critical setup details for background modes and state restoration. Targets Swift 6.3 and iOS 26+. If you're building anything that talks to BLE devices, this walks through the delegate chain and common pitfalls like forgetting to retain discovered peripherals or scanning before the manager is powered on.
- skills.sh installs
- 3.9K
- GitHub stars
- 1.3K
- last updated
- Aug 21, 2026
Install
$ npx -y skills add dpearson2699/swift-ios-skills --skill core-bluetooth --agent claude-codeInstalls into .claude/skills of the current project.
Files
Core Bluetooth
Scan for, connect to, and exchange data with Bluetooth Low Energy (BLE) devices.
Covers the central role (scanning and connecting to peripherals), the peripheral
role (advertising services), background modes, and state restoration.
Use accessorysetupkit for privacy-preserving accessory discovery and setup;
use this skill for direct Core Bluetooth GATT communication.
Contents
- Setup
- Central Role: Scanning
- Central Role: Connecting
- Discovering Services and Characteristics
- Reading, Writing, and Notifications
- Peripheral Role: Advertising
- Background BLE
- State Restoration
- Common Mistakes
- Review Checklist
- References
Setup
Info.plist Keys
Sponsors
Details
- Repository
- github.com/dpearson2699/swift-ios-skills
- Categories
- Security, DevOps & CI/CD, Documentation, Mobile Development
- First seen
- Apr 16, 2026
More from dpearson2699/swift-ios-skills
All 98- Core Motion3.8K
- Natural Language3.8K
- Speech Recognition3.8K
- Device Integrity3.8K
- Contacts Framework3.8K
- Alarmkit3.8K
- Core Nfc3.8K
- Swift Codable3.8K
- Tipkit3.8K
- App Clips3.8K
- Permissionkit3.7K
- Energykit3.7K
- Shareplay Activities3.7K
- Weatherkit3.6K
- Activitykit3.5K
- Cloudkit3.5K
- Photokit3.4K
- Mapkit3.4K
- Swiftui Webkit3.4K
- Realitykit3.4K
- Avkit3.4K
- Spritekit3.3K
- Cryptokit3.3K
- Metrickit3.3K