carp-dk / carp-dk/flutter-plugins

Sleep data is requested with GFit even when it is not requested by the client

Open
#569 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
608
Forks
735
Avg merge
1m
Merged PRs (30d)
3

Description

So, as per version 4.0.0, I wanted to request the workout data types and the distance delta data from the GFit. But somehow, the sleep data is also requested by the client when I refer to my google account's permission for the app. Works fine in debug, but causes an issue in production as the sleep permission for the app was not pre-approved by google and hence the build is not working in production

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the Flutter plugin's Google Fit permission request for workout and distance delta data, then compare the scopes requested with the sleep scope shown in the Google account permissions. Done means sleep data is not requested when the client does not ask for it, and the production authorization flow no longer requires unapproved sleep permission.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.