fluttercommunity / fluttercommunity/plus_plugins
[Request]: Make sensors_plus to work in background task in android.
- Dominant language
- Dart
- Stars
- 1.9k
- Forks
- 1.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Plugin
sensors_plus
### Use case
I wanted to create an app that check if the device is picked up every few hours, and notify to the emergency contacts if there is no pick up in the last 24-48 hour.
In order to do that, the app needs to work in the background, get the information from gyroscope, and sends the information to the server to check the difference.
I considered using the location, but users might be concerned about their privacy.
Hence using the gyroscope is suitable for this case.
But the gyroscope does not work on background in android.
Consulted this as a bug, but found out there is no such functionality provided.
https://github.com/fluttercommunity/plus_plugins/issues/2514
### Proposal
Please make gyroscope to work in background task.
Contributor guide
Assessment
This issue has not been assessed yet.