fluttercommunity / fluttercommunity/plus_plugins

[Request]: Make sensors_plus to work in background task in android.

Open
#2,521 1 comment 1 reaction 0 assignees View on GitHub
enhancement triage
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.