flutter-plugins icon indicating copy to clipboard operation
flutter-plugins copied to clipboard

[health] Remove automatically added workout permissions

Open ciriousjoker opened this issue 4 months ago • 0 comments

Workouts don't necessarily have distances or burnt calories. The health plugin automatically requests these permissions with no way to disable it.

Solution

  • Don't automatically request those permissions and make the package consumer declare the permissions manually

Solves these

  • #1047
  • #984

Keep in mind that this is a breaking change, since all users who previously relied on the permission from being added automatically now need to declare it themselves. This PR only updates the code, but not the changelog or the documentation.

ciriousjoker avatar Oct 05 '24 20:10 ciriousjoker