breautek commented on issue #63: URL: https://github.com/apache/cordova-plugin-device-orientation/issues/63#issuecomment-1699493898
> Hello, > > No news about the previous message ⬆️ ? I still have the issue (CompassError Code 3) on Xiaomi Redmi Note 10 and 11 even if the compass is well indicated in other apps. > > Someone could help me with this? > > _Thanks, Loïc_ https://github.com/apache/cordova-plugin-device-orientation/issues/63#issuecomment-818232652 Error code 3 is returned if the compass sensor could not start, which is the case if the sensor could not be found. This is likely because the sensor ([TYPE_ORIENTATION](https://developer.android.com/reference/android/hardware/Sensor#TYPE_ORIENTATION)) is deprecated and has been deprecated for some time now and replaced with a non-sensor `getOrientation` API. There is no open PR that makes this change, but there is https://github.com/apache/cordova-plugin-device-orientation/pull/78 which attempts to simulate orientation sensor by fusing two different sensors together. I'm not sure if I agree with this approach, but you could test it to see if it solves your problem. -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
