ios - Accessing data from HealthKit with Swift -


I'm totally noob on swift (and xcode), in fact, only the only programming language I (to some degree)) is javascript.

I am trying to make a swift spirit kit game, and I want to use the number of calories burned in the healthcare.

The idea is that my game does not really track anything like other apps like Endomondo, such as you burn more calories more points, I just leave other apps left by the Health app I want to access the data.

Is this possible? (I'm running the latest version of everything from Mac OS X to Xcode)

It does not seem that technically you have nothing to stop from calling the Healthcare API in your game. In fact, you are quite happy to mix and match the use of any public infrastructure provided on iOS.

One thing to keep in mind is the disclosure of the use of privacy and health data. The user must explicitly grant his app's permission to view the data.

There are several ways to access many different types of data, and in reality you are only a little interested now, then using a quick way to use new project templates in Xcode Make a new Swift spirit kit game, do your research on the healthcare, and see if you can only log the number of calories burned from certain time points, while your app is running if you are You can get the details of the rest (as the whole app: -)).

Here, I think some helpful links on your project may be best wishes!

You will also find some good documents on the Sprint Kit (Reference and Guide) on the iOS Developer Library site.


Comments

Popular posts from this blog

winforms - C# Form - Property Change -

javascript - amcharts makechart not working -

java - Algorithm negotiation fail SSH in Jenkins -