krokyze / FitKit

Flutter plugin for reading health and fitness data. Wraps HealthKit on iOS and GoogleFit on Android.
BSD 2-Clause "Simplified" License
98 stars 72 forks source link

[Android] infinite loading after choose account in OAuth consent screen #69

Closed nongtiny closed 3 years ago

nongtiny commented 3 years ago

Flutter 1.22.5 • channel stable fit_kit: ^1.1.2 ONEPLUS A6000

When I checked the permission in the application info, the physical activity is allowed, but it can't use FitKit.read.

nagisayuu commented 3 years ago

I had same issue. In my case , making the Publishing status "In production" in oauth concent screen setting solved the issue.

https://console.developers.google.com/apis/

Harshdeep4295 commented 3 years ago

Edited: if you want to use it in the testing state, do add a user who will have access to the GCP by adding a test user. as displayed in image.

Screenshot 2021-01-19 at 8 52 05 PM
nongtiny commented 3 years ago

I changed to the production state, and it works. Before that, I did like what you do @Harshdeep4295, and it also works.

Right now, I don't know why it works only in the production state.

By the way, thank you for your responses.