android/fit-samples

Error : Request code was : 0 for basic history api kotlin

ummeSuleyath opened this issue · 4 comments

Hi,
I have followed the all the steps to configure this app but every time i get this error and the same steps were followed for different sample apps it seems to work fine except for BasicHistoryApi

E/BasicHistoryApi: There was an error signing into Fit. Check the troubleshooting section of the README
for potential issues.
Request code was: 0
Result code was: 0

Found a solution?

For anyone with the a similar issue for me the issue was fixed as I added my google account at test users at the OAuth consent screen.

Step by step in Google Cloud Console:

  1. OAuth consent screen
  2. OAuth user cap
  3. Test users
  4. Click on "Add Users button"
  5. Add active Google account

This link helped me solve the problem. In case it is more complex for someone else !

https://stackoverflow.com/questions/67586876/google-fit-authorization-auth-denied-authorization-cancelled

i am also facing same issue. And my project scope is also approved but still facing same issue.