Flutter: Health Package Usage with Tutorial Video
Feb 13, 2023
Enables reading and writing health data from/to Apple Health and Google Fit.
Run this command:
flutter pub add health
Append the Info.plist with the following 2 entries
<key>NSHealthShareUsageDescription</key>
<string>We will sync your data with the Apple Health app to give you better insights</string>
<key>NSHealthUpdateUsageDescription</key>
<string>We will sync your data with the Apple Health app to give you better insights</string>
Open your Flutter project in Xcode by right clicking on the “ios” folder and selecting “Open in Xcode”. Next, enable “HealthKit” by adding a capability inside the “Signing & Capabilities” tab of the Runner target’s settings.
after this don’t forget
pod install
My Udemy Flutter Course;