fit-samples
fit-samples copied to clipboard
Authen to google problem
Issue by tntkhang
Friday Jun 16, 2017 at 03:18 GMT
Originally opened as https://github.com/googlesamples/android-fit/issues/23
When I run app the pop-up select email to authen to Google, I select the email but the app always throw StatusCode = CANCEL. Does the authen funtion out of date ? Do we need to switch to this authen guide: https://developer.android.com/training/wearables/apps/auth-wear.html#configure-google-sign-in
Comment by Kagetsuki
Wednesday Sep 20, 2017 at 09:04 GMT
I'm having the same issue, did you ever figure it out?
Comment by yoshimaa
Friday Oct 20, 2017 at 02:48 GMT
@tntkhang @Kagetsuki this android-fit sample is too bad, but anynone dont fix that problem.
Comment by Kagetsuki
Friday Oct 20, 2017 at 02:52 GMT
I ended up using a bunch of different guides. Everything from Google is outdated. The permission names are different, you have to ask for permission with a method at run-time, a bunch of the method names have changed. The library version in samples is 3 major versions out of date. If Google is wondering why there's so few apps with Google Fit integration - this is the reason why.Your official documentation and samples are garbage.
Comment by thisisjatinrana
Friday Aug 17, 2018 at 09:33 GMT
Check if internet connectivity is there. I was facing same issue later found out that wifi was off.
Comment by paul-ridgway
Tuesday Feb 12, 2019 at 14:40 GMT
Make sure you have associated an OAuth 2.0 client id with your keystore - https://developers.google.com/fit/android/get-api-key