Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Request]: sensor_plus插件在flutter3.38以上版本运行时,触发隐私合规问题

Open
#3,728 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart, flutter
Domain
mobile

Research direction

Start by locating sensor_plus's ActivityAware.onAttachedToActivity implementation and the Dart subscription entry point. Trace when the sensor is accessed under Flutter 3.38 and verify that completion means no sensor access occurs before a Dart subscription, including on first app launch.

Written by the indexing model from the issue text.

Description

enhancement triage
Plugin

sensor_plus

Use case

Flutter 3.38后,FlutterActivity 会在更早的生命周期就 attach 全部 ActivityAware 插件;在sensor_plus的attach里,attach时就获取了设备的传感器。这导致 在app第一次启动后,用户还没有点击同意隐私授权,flutter侧就访问了设备传感器,这在商店审核时是不合规的,不符合隐私合规。

Proposal

能不能把 ActivityAware.onAttachedToActivity 改成惰性初始化,只在 Dart 订阅时才去访问传感器。

Dominant language
Dart
Stars
1.9k
Forks
1.3k
Avg merge
6d 16h
Merged PRs (30d)
16

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fluttercommunity/plus_plugins

All issues in fluttercommunity/plus_plugins

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.