0

I'm working on an application in health & fitness space and one of the requirement is to retrieve activities data (step count and sleep data to begin with) from wearables.

My understanding is that I will be able to get this data from Google Fit and Apple Health. I'm confused on to choose flutter package or to use native libraries with platform specific implementation

Option 1 - Flutter package:

  • There is a package called Health (https://pub.dev/packages/health). It is a wrapper built around Google Fit, Health Connect for Android and HealthKit for iOS.

  • I'm concerned about the reliability and security of this package as this is not flutter favourite.

  • Has anyone used this package here in this community? If yes, please share your feedback.

Option 2 - Native approach:

Please suggest which one would be the better option or any other approach I'm missing..

Rajath
  • 92
  • 3

1 Answers1

0

the Health package is good and you can use it in general. The best solution would be to take steps from the pedometer package(https://pub.dev/packages/pedometer) for Android and Ios, because it will give you real-time data. For sleep data, use Health

Max Boyko
  • 1
  • 2
  • 1
    As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Aug 16 '23 at 11:34
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - [From Review](/review/late-answers/34844911) – doneforaiur Aug 19 '23 at 04:16