简体   繁体   中英

Cordova Plugin Pedometers

I try to put this plugin on my Android app https://github.com/leecrossley/cordova-plugin-pedometer

I put this on my OnDeviceReady :

var successHandler = function (pedometerData) {

alert(pedometerData.numberOfSteps);

};
pedometer.startPedometerUpdates(successHandler, onError);

I tried several code but it doesnt work,

Someone has a solution please

check that plugin is properly installed with :

cordova plugin list

If you do not see it in the list, run:

cordova plugin add cordova-plugin-pedometer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM