You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The listener 'Gyroscope' is never triggered, I have no errors at all, but nothing never happens. I suppose my code is Ok since all other sensors are working well. Tried on a Samsung and a Sony device. Any idea ?
importReact,{DeviceEventEmitter}from'react-native';varmSensorManager=require('NativeModules').SensorManager;mSensorManager.startGyroscope(100);DeviceEventEmitter.addListener('Gyroscope',function(data){// Got never here});
The text was updated successfully, but these errors were encountered:
Hint: While trying to debug (don't know Android nor Java, so quite hard), I found out that, in file react-native-sensor-manager/android/src/main/java/com/sensormanager/GyroscopeRecord.java
if ((mGyroscope = mSensorManager.getDefaultSensor(Sensor.TYPE_GYROSCOPE)) != null) {
The listener 'Gyroscope' is never triggered, I have no errors at all, but nothing never happens. I suppose my code is Ok since all other sensors are working well. Tried on a Samsung and a Sony device. Any idea ?
The text was updated successfully, but these errors were encountered: