How to read device Sensor data, like Gyroscope, Accelerometer

Hi

What is the mechanism to read Sensor data , so my app can send it to my backend and also react to it.

Thanks,
Rajesh

You might be able to do that using ngCordova’s Device Motion plugin.

ngCordova has only accelerometer and compass. There is no gyroscope or rotation vector.

Hey @rjain15 did you find some solution for this?
I’m looking for the same and find nothing

@rjain15 @FranMeriles
You may try this:

https://www.npmjs.com/package/cordova-plugin-gyroscope