breautek commented on issue #63:
URL: 
https://github.com/apache/cordova-plugin-device-orientation/issues/63#issuecomment-818232652


   Error code 3 means the android device doesn't have a sensor available to use:
   
   
https://github.com/apache/cordova-plugin-device-orientation/blob/ee05df544d7a0c7514a3303193bf9413d41cfcbe/src/android/CompassListener.java#L180
   
   Despite of the suppress deprecation, the method doesn't appear to be 
deprecated: 
https://developer.android.com/reference/android/hardware/SensorManager#getSensorList(int)
   
   So this suggest that your device doesn't have an Orientation sensor. The 
constant is 
[deprecated](https://developer.android.com/reference/android/hardware/Sensor#TYPE_ORIENTATION)
 however, so perhaps you can try replacing it with 
`SensorManager.getOrientation()` instead?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to