Skip to content

Add option for time-based background scanning as an alternative to "automatic scanning while moving" on non-play devices #741

@Lurux

Description

@Lurux

Description

Rationale

Currently, a user can contribute data in the background (without opening the app) in three ways:

  • Using the quick settings tile. Needs manual intervention.
  • Passively. May not be used often if the user otherwise rarely uses location-based apps.
  • Via Google's Activity Recognition API.

The latter API seems blocked in GrapheneOS as per other issues, and is not currently implemented in MicroG, leaving non-play users who want to contribute data in the background without intervention with no good option (unless they often use location-based apps).

Suggestion

I suggest adding a third option, "Automatically try scanning from time to time", which would start scanning on a configurable interval, eg. every 10-60 minutes.

Suggested implementation

Behavior

When scanning is enabled by this mechanism, it should automatically stop if/when the device isn't/stops moving.

If "pause scanning on low battery" is enabled and battery is below the configured level, this mechanism should not enable scanning in the first place.

When this setting is enabled, the timer should automatically be started at boot.

I assume "automatic scanning while moving" has all these behaviors already implemented here (?)
If not, it might be worth upgrading said option to follow said behaviors

Additional information

Benefit

This should provide non-play device users with a battery-friendly way to continuously contribute data in the background, even if they don't have access to Google Services.

New request

  • I have checked that a similar feature hasn't been requested yet

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions