<cordova-accelerometer>
provides access to the device's accelerometer.
In your www
project:
bower install --save cordova-accelerometer
In your cordova
project:
cordova plugin add cordova-plugin-device-motion
<cordova-accelerometer
auto
loop
period="3000"
ready
timestamp="1471173266"
x="3"
y="1.4"
z="0"
></cordova-accelerometer>
<cordova-accelerometer>
allow to read the state of the device's accelerometer
in the current moment. ready
means cordova is fully operative and
acceleration
shows the speed of the device.
Due to restrictions ready
attribute is not shown into attributes table.