1

I am using the flutter health package. It is working fine on iOS but on Android, it kept saying "Authorization is not granted". I followed the example to get the fitness API on the google developer console and OAuth Client ID. But I don't know how to set it in my flutter app if it is needed. Thank you.

1 Answer 1

1

I've got it working by following this advice on the package Github repo. But I am open to more answers. Thanks

[Updated] This solution can cause conflict and raise the "version solving failed" exception when using it together with the location package.

The best way, for now, is to use health: 3.0.4 as a workaround.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.