Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support more sensors and more platforms #5

Open
6 of 40 tasks
bdlukaa opened this issue Dec 5, 2020 · 2 comments
Open
6 of 40 tasks

Support more sensors and more platforms #5

bdlukaa opened this issue Dec 5, 2020 · 2 comments

Comments

@bdlukaa
Copy link

bdlukaa commented Dec 5, 2020

First of all, thank you for the awesome plugin :)

As flutter grows, we'd like this plugin to grow with it. It'd be great to have more supported sensors and platforms in the plugin.

Supported sensors in Android:

  • Acelerometer
  • Gravity
  • Gyroscope
  • Light level
  • Linear acceleration
  • Magnetic Field
  • Orientation
  • Ambient Pressure
  • Ambient Temperature
  • Device Temperature
  • Proximity
  • Relative Humidity
  • Rotation Vector
  • Step counter

Supported sensors in iOS and macOS:

  • Accelerometer
  • Gyroscope
  • Pedometer
  • Proximity
  • Magnetometer
  • Altitude
  • Fall detection
  • Headphone Motion
  • Others not mentioned in the article

Supported sensors in web:

Other sensors are supported but by a very few amount of browsers.

Supported sensors in windows

Equivalents in each platform

Android iOS macOS Web Windows
Accelerometer ✔️ ✔️ ✔️ ✔️ ✔️
Altitude ✔️ ✔️ ✔️
Ambient Temperature ✔️
Fall detection ✔️ ✔️
Gravity ✔️ ✔️
Gyroscope ✔️ ✔️ ✔️ ✔️ ✔️
Headphone motion ✔️ ✔️
Ambient Light Level ✔️ ✔️ ✔️
Linear acceleration ✔️
Magnetic field ✔️ ✔️ ✔️ ✔️ ✔️
Orientation ✔️ ✔️ ✔️
Pedometer ✔️ ✔️ ✔️ ✔️
Ambient Pressure ✔️
Proximity ✔️ ✔️ ✔️ ✔️
Relative Humidity ✔️
Rotation Vector ✔️

To support sensors through all these platforms (and maybe others in the future), migrating the plugin to federated is necessary and recommended. While migrating, it'd be awsome null-safety being supported, since the whole framework is being migrated to it.

Android supports all the sensors in api level 14 (see this), so it'd be good to downgrade the minSdkVersion to reach more devices.

Now the recommened language for android is kotlin instead of java, so it would be also good to switch to it, since java may be not supported anymore in the future

@bdlukaa bdlukaa changed the title More sensors and a little bit of rework Support more sensors and more platforms Dec 7, 2020
@songyiYu
Copy link
Owner

songyiYu commented Dec 9, 2020

Thanks for your great idea! It would be nice to develop the plugin and pr is always welcome :)

@bdlukaa
Copy link
Author

bdlukaa commented Mar 16, 2021

Hello @songyiYu . Are you still interested in collaborating? If yes, you can dm me at discord: bdlukaa#4828

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants