Skip to content

Magnetometer values are off #781

@filippkowalski

Description

@filippkowalski

System info

Platform the Issue occurs on: iOS
Plugin name: sensors_plus
Plugin version: 1.3.0

Steps to Reproduce

It seems that Flutter's implementation of the Magnetometer is off when compared to iOS devices.
I don't know yet if it's due to some additional flags that are set on the iOS side to calibrate the magnetometer ( https://stackoverflow.com/questions/28365121/how-to-get-magnetometer-data-using-swift ), but results for Flutter are way higher than for iOS devices. And actually sometimes when the Flutter app detects metals the values go down instead of going up.

You can easily test it out by downloading those 3 apps below and seeing the results by yourself.

iOS implementation
https://apps.apple.com/us/app/stud-finder-wall-detector/id1530653768
https://apps.apple.com/us/app/teslameter/id976926346

Flutter implementation
https://apps.apple.com/us/app/stud-finder/id1613688190

iOS

Flutter

You can see on the screenshots that iOS values are lower than those on Flutter. All of those screenshots were made in the same phone position, with the phone lying flat.

One note here: Look at the X, Y, Z values here, because the Flutter app has the main displayed wrong.

cc: @Zabadam because I've seen that you were implementing this feature

Metadata

Metadata

Assignees

No one assigned

    Labels

    HacktoberfestIssues taking part in HacktoberfestStalebugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions