/cordova-pulse

Cordova plugin that measures user's heartrate with device camera.

Primary LanguageObjective-C

Cordova Heart Rate Plugin

Plugin to measure heart rate with the device's camera and flashlight in realtime.

Currently iOS only

Using

Install the plugin

$ cordova plugin add https://github.com/szokeptr/cordova-pulse.git

In your app use as follows:

    var success = function(bpm) {
        console('Your pulse is:', bpm);
    }

    var failure = function() {
        alert("Error calling Pulse plugin");
    }

    pulse.measure(success, failure);

To stop measuring:

	pulse.stop();