GithubHelp home page GithubHelp logo

watchos-2-heartrate's Introduction

watchOS-2-heartrate

Join the chat at https://gitter.im/coolioxlr/watchOS-2-heartrate

06/29/2016 Updates watchOS3 + Swift3 https://github.com/coolioxlr/watchOS-3-heartrate

11/13/2015 Updates Apple finlly provide some sample code how to close ActivityRings https://developer.apple.com/library/watchos/samplecode/ActivityRings/Introduction/Intro.html#//apple_ref/doc/uid/TP40016623

Example to show streaming heartrate from watch using Swift

  • request healthkit authorization from watch
  • queary from healthkit to show heartrate

##Requirements

  • Xcode 7.0, iOS 9.0 SDK, watchOS 2.0 SDK
  • iOS 9.0 and watchOS 2.0

##How to build

  • Change the "Team" setting on [General] for each target.
  • Setup HealthKit for the WatchKit extension target.

##watchOS Beta3

  • Simulator now showing simulated heartrate

##watchOS Beta4

  • Updated with new APIs

watchos-2-heartrate's People

Contributors

coolioxlr avatar gitter-badger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

watchos-2-heartrate's Issues

HKWorkoutEvent

Could you add pause and resume function in your app using the HKWorkoutEvent?

Compile Error with Xcode Version 7.0 beta 4 (7A165t) and watchDevice with OS 2

WatchKit App Extension/InterfaceController.swift:25:18: error: use of unresolved identifier 'HKQueryAnchor'
var anchor = HKQueryAnchor(fromValue: Int(HKAnchoredObjectQueryNoAnchor))

WatchKit App Extension/InterfaceController.swift:105:96: error: 'InterfaceController' does not have a member named 'anchor'
let heartRateQuery = HKAnchoredObjectQuery(type: quantityType, predicate: nil, anchor: anchor, limit: Int(HKObjectQueryNoLimit)) { (query, sampleObjects, deletedObjects, newAnchor, error) -> Void in

Heart rate will not shown

Hello,

i have a problem with your Heart Rate Example. The Apple Watch App don't show me the Heart Rate but the green light sensors are working if i press start.
Could u help me in this :) ?

Regards,
Dennis

img_0549

What's the deal with 'HealthKit.framework'?

Hi!

Thanks for your exemple! This is only a question and not really a problem with your source code.

One of the steps necessary to build the solution, according to the readme, is to 'Setup HealthKit for the WatchKit extension target.'.

Well, I've tried to do that, but it is as if my XCode instalation doesn't have a 'HealthKit.framework'. I even tried to manually find the file or start from the scratch from a new project, but on all the cases, Xcode doesn't find the framework.

I even posted a question on StackOverflow (http://stackoverflow.com/questions/31734838/not-able-to-turn-on-healthkit-capability).

If you know what's going on, I'd really appreciate the help!

Xcode 7 beta 5 build error: Expression does not conform to type 'NilLiteralConvertible'

Hey, thanks for the great work (with this repo)!

I'm getting a build error on https://github.com/coolioxlr/watchOS-2-heartrate/blob/master/VimoHeartRate%20WatchKit%20App%20Extension/InterfaceController.swift#L110

watchOS-2-heartrate/VimoHeartRate WatchKit App Extension/InterfaceController.swift:110:83: Expression does not conform to type 'NilLiteralConvertible'

Using Version 7.0 beta 5 (7A176x)

This error doesn't make sense (on Xcode & Apple's part) since their documentation says that passing in nil is valid

App Throws an Exception

App throws an exception at the following line let value = sample!.quantity.doubleValueForUnit(self.heartRateUnit) but I haven't been able to figure out why

app crashes when I tap "Start"

hey all, just notified that the app crashes once I've given authorization and tapped "Start". Anyone seeing this too?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.