Flutter: Health Package Usage with Tutorial Video

--

flutter health get steps

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;

Flutter: Google Sign In with REST API, JWT

https://www.udemy.com/course/flutter-google-sign-in-with-rest-api-jwt/?referralCode=39B955A0C1C5AAFA8A93

--

--

Yusuf Biberoğlu
Yusuf Biberoğlu

Written by Yusuf Biberoğlu

Software Developer 💻 (PHP-Symfony, Flutter, Dart, Firebase) https://www.linkedin.com/in/yusufbiberoglu/

No responses yet