plus_plugins
plus_plugins copied to clipboard
[Question]: "Exception caught by services library" when trying to use sensors_plus
What is your question?
When trying to get gyroscope data from sensors_plus as shown in the plugin's example page, I get the following exception error:
════════ Exception caught by services library ══════════════════════════════════
PlatformException(error, <get-sensor>(...) must not be null, null, null)
════════════════════════════════════════════════════════════════════════════════
Values from the sensors are null. I've not found anyone else with this issue online. What am I doing wrong?
Same here, even running the GitHub Snake example that's on this site without changing a single line of code, only Accelerometer returns values, but UserAccelerometer, Gyroscope and Magnetometer are all null.
Same here, stack trace is awesome btw
at StandardMethodCodec.decodeEnvelope(message_codecs.dart:653)
at MethodChannel._invokeMethod(platform_channel.dart:296)
at EventChannel.receiveBroadcastStream.<fn>(platform_channel.dart:637)
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days