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

Does Google Fit API only works with gmail account?

Open panjiyudasetya opened this issue 5 years ago • 2 comments

What happened

I'm trying to use Fitness API services on my app and it was running well so far. I can obtain any data that I need from Fit App until it wont work anymore when I'm using corporate account outside gmail on the authorisation pop up, for example [email protected].

Steps to reproduce

  • Add another account in your device (outside gmail, eg: your email account for work)
  • Open your app, ask for fitness permission (two account will appear eg: [email protected] and [email protected] through permission dialog)
  • When you authorise fit permission for [email protected] account, fitness data should be retrieve-able.
  • When you authorise fit permission for [email protected] account, fitness data is not retrieve-able. For example, if you get step count it always return 0 value.

Main concern

So what I want to know is, does Fitness API only works with gmail account? They do not mention anything about that on the authorization pages:

  • https://developers.google.com/fit/rest/v1/authorization
  • https://developers.google.com/identity/#google-sign-in

It would be nice if someone can point me out to a relevant article or something similar. Thank you.

panjiyudasetya avatar Oct 14 '19 03:10 panjiyudasetya

Hi, I had the same problem with the "@googlemail.com" email domain. The only workaround I've found is switching to the "@gmail.com" domain, but that's not really satisfying. I think that's a bug in the Google login API, but I've been waiting for Google for months to fix it, but nothing happens.

TomTietze avatar Oct 14 '19 20:10 TomTietze

Hi @TomTietze. Thank you for the information, I taught it was only me who had this problem. I hope they will fix this soon too, or at least they put an explicit documentation that tells Fitness API only works with an account with @gmail.com email domain. 😞

panjiyudasetya avatar Oct 16 '19 03:10 panjiyudasetya