hemanthrajv / flutter_compass

MIT License
102 stars 188 forks source link

Android | Use geomagnetic rotation sensor as fallback #38

Closed Xennis closed 4 years ago

Xennis commented 4 years ago

If the TYPE_ROTATION_VECTOR is not available (e.g. on cheaper or older Android devices) use TYPE_GEOMAGNETIC_ROTATION_VECTOR as fallback. That's increases the support for more Android devices.

TYPE_GEOMAGNETIC_ROTATION_VECTOR is:

Similar to TYPE_ROTATION_VECTOR, but using a magnetometer instead of using a gyroscope. This sensor uses lower power than the other rotation vectors, because it doesn't use the gyroscope. However, it is more noisy and will work best outdoors.

Xennis commented 4 years ago

@hemanthrajv can you please release a new version with that change?