Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write support on Google Fit and HealthKit #430

Merged
merged 8 commits into from Nov 14, 2021

Conversation

matsunanaro
Copy link

@matsunanaro matsunanaro commented Oct 13, 2021

This PR is derived from the PR #182 by Matthew Pitzer.
On top of the original PR, this PR

  • implemented the writeHealthData method on Android using Google Fit API.
  ///
  /// Saves health data into the HealthKit or Google Fit store
  ///
  /// Returns a Future of true if successful, a Future of false otherwise
  /// 
  /// Parameters
  /// 
  /// [value]  
  ///   value of the health data in double
  /// [type]   
  ///   the value's HealthDataType 
  /// [startTime] 
  ///   a DateTime object that specifies the start time when this data value is measured. 
  ///   It must be equal to or earlier than [endTime]
  /// [endTime]
  ///   a DateTime object that specifies the end time when this value is measured.
  ///   It must be equal to or later than [startTime].
  ///   Simply set [endTime] equal to [startTime] 
  ///   if the value is measured only at a specific point in time.
  /// 
  Future<bool> writeHealthData(double value, HealthDataType type,
      DateTime startTime, DateTime endTime)

@bardram
Copy link
Contributor

bardram commented Nov 14, 2021

Thanks for this PR - will merge it and release.

@bardram bardram merged commit deef9b4 into cph-cachet:master Nov 14, 2021
@matsunanaro matsunanaro deleted the write_feature branch January 10, 2022 14:21
hibitness-quan-nguyen2 pushed a commit to hibitness/flutter-plugins that referenced this pull request Dec 18, 2023
Write support on Google Fit and HealthKit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants