plus_plugins icon indicating copy to clipboard operation
plus_plugins copied to clipboard

[Question]: "Exception caught by services library" when trying to use sensors_plus

Open jckpn opened this issue 2 years ago • 1 comments

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?

jckpn avatar Aug 01 '22 22:08 jckpn

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.

KimAloy avatar Aug 09 '22 12:08 KimAloy

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)

chapsan2001 avatar Nov 23 '22 16:11 chapsan2001

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

github-actions[bot] avatar Feb 22 '23 00:02 github-actions[bot]