navi8602 / cordova-pulse

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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();

About

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


Languages

Language:Objective-C 78.2%Language:Objective-C++ 19.5%Language:JavaScript 2.3%