How to read device Sensor data, like Gyroscope, Accelerometer


#1

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


#2

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


#3

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


#4

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


#5

@rjain15 @FranMeriles
You may try this:

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