Skip to content

rmcalvert/HealthKit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cordova HealthKit Plugin

Marketplace logo For a quick demo app and easy code samples, check out the plugin page at the Verified Plugins Marketplace: http://plugins.telerik.com/plugin/healthkit

Supported functions:

  • available: check if HealthKit is supported (iOS8+, not on iPad)
  • requestAuthorization: ask some or all permissions up front, see the example
  • readDateOfBirth: formatted as yyyy-MM-dd
  • readGender: output = male|female|unknown
  • readWeight: pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone)
  • saveWeight: pass in unit (g=gram, kg=kilogram, oz=ounce, lb=pound, st=stone) and amount
  • readHeight: pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot)
  • saveHeight: pass in unit (mm=millimeter, cm=centimeter, m=meter, in=inch, ft=foot) and amount
  • saveWorkout: see the example for instructions
  • findWorkouts: no params yet, so this will return all workouts ever of any type
  • querySampleType: see the example. Note that you need to call requestAuthorization first in this version of the plugin.
  • sumQuantityType: not documented yet
  • monitorSampleType: not documented yet

Tips

About

Cordova plugin for the iOS HealthKit framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 89.5%
  • JavaScript 10.5%