ios - Accessing data from HealthKit with Swift -
ios - Accessing data from HealthKit with Swift -
i'm finish noob @ swift (and xcode), matter of fact, programming language (somewhat) know javascript.
i'm trying create swift spritekit game, , access number of calories burned in healthkit.
the thought game provide more points more calories fire using other apps endomondo. app not track anything, access other info left other apps in health app.
is possible? (i'm running latest version of everything, mac os x xcode)
certainly. don't think there technically preventing making calls healthkit apis in game. in fact, you're free mix , match utilize of public frameworks provided on ios.
one thing maintain in mind privacy , disclosure of utilize of health data. user have explicitly grant app permission see data.
healthkit rich api lots of ways access lots of different kinds of data, , you're interested in little part right now, quick way experiment create new swift spritekit game new project template in xcode, research on healthkit, , see if can log number of calories burned since time point while app running. if can that, rest details (as in, entire app :-)).
here think might helpful links, luck on project!
https://itunes.apple.com/us/book/swift-programming-language/id881256329?mt=11
https://developer.apple.com/library/ios/documentation/healthkit/reference/healthkit_framework/index.html
you'll find documentation on spritekit (references , guides) on ios developer library site.
ios swift xcode6 health-kit
Comments
Post a Comment