fit-samples icon indicating copy to clipboard operation
fit-samples copied to clipboard

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

Open ummeSuleyath opened this issue 5 years ago • 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

ummeSuleyath avatar May 12 '20 10:05 ummeSuleyath

Found a solution?

ellasaro avatar Oct 08 '20 21:10 ellasaro

+1

Aurangempire avatar Jan 20 '21 10:01 Aurangempire

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

Dimitri-Kavon-Williams avatar Oct 13 '21 16:10 Dimitri-Kavon-Williams

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

teraiyamayurcontact avatar Apr 12 '22 03:04 teraiyamayurcontact