@capgo/capacitor-health 7.2.7 → 7.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -8,6 +8,20 @@
|
|
|
8
8
|
|
|
9
9
|
Capacitor plugin to read and write health metrics via Apple HealthKit (iOS) and Health Connect (Android). The TypeScript API keeps the same data types and units across platforms so you can build once and deploy everywhere.
|
|
10
10
|
|
|
11
|
+
## Why Capacitor Health?
|
|
12
|
+
|
|
13
|
+
The only **free**, **unified** health data plugin for Capacitor supporting the latest native APIs:
|
|
14
|
+
|
|
15
|
+
- **Health Connect (Android)** - Uses Google's newest health platform (replaces deprecated Google Fit)
|
|
16
|
+
- **HealthKit (iOS)** - Full integration with Apple's health framework
|
|
17
|
+
- **Unified API** - Same TypeScript interface across platforms with consistent units
|
|
18
|
+
- **Multiple metrics** - Steps, distance, calories, heart rate, weight
|
|
19
|
+
- **Read & Write** - Query historical data and save new health entries
|
|
20
|
+
- **Modern standards** - Supports Android 8.0+ and iOS 14+
|
|
21
|
+
- **Modern package management** - Supports both Swift Package Manager (SPM) and CocoaPods (SPM-ready for Capacitor 8)
|
|
22
|
+
|
|
23
|
+
Perfect for fitness apps, health trackers, wellness platforms, and medical applications.
|
|
24
|
+
|
|
11
25
|
## Documentation
|
|
12
26
|
|
|
13
27
|
The most complete doc is available here: https://capgo.app/docs/plugins/health/
|
|
@@ -3,7 +3,7 @@ import Capacitor
|
|
|
3
3
|
|
|
4
4
|
@objc(HealthPlugin)
|
|
5
5
|
public class HealthPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
6
|
-
private let pluginVersion: String = "7.2.
|
|
6
|
+
private let pluginVersion: String = "7.2.9"
|
|
7
7
|
public let identifier = "HealthPlugin"
|
|
8
8
|
public let jsName = "Health"
|
|
9
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED