android/fit-samples

StepCounterKotlin stuck on empty white popup after selecting Google Account

vkubiv opened this issue · 30 comments

Hello,

I try to run StepCounterKotlin sample.
After selecting a Google Account, an empty white popup is shown, just with a loader at the top. And it stuck in this place.
No errors are visible in logcat . I tested in the emulator and on Redmi Note 8 phone.

Package name match credentials for my Cloud project, package name matches the applicationId in the app/build.gradle file, and Signing-certificate fingerprint from debug.keystore is entered correctly.
Should I make some additional setup on Google API Console?

Best

I'm experiencing the same problems since yesterday, both on a custom app as well as in the BasicHistoryApiKotlin sample.
After selecting a Google account the popup where the permissions are selected is blank and I can only see a circular loading indicator.
It will stay indefinitely like that unless I cancel the popup.
I tested on an emulator, a Huawei Pro 20 Lite, and on another device, with four different accounts, same result...

Also have the correct configuration in the Google Cloud Console, tried on two different projects, one of them brand new.

Any help would be appreciated.

I am facing the exact same issue. Any updates yet?

Seems like a few people are experiencing the same:
https://stackoverflow.com/questions/65759476/google-fit-api-login-stuck-at-loading/
Is there any way we can bring this to the attention of someone at Google?

私も同じ問題に直面しています。
サンプルが動作せずに困っています。

Facing the same issue, anyone finds the solution?

Same issue here, and the worst part is that it gives no error/warning message in logcat to tell us what is going on.

Same here,
user can still select an account [1], but then it goes into endless loading [2]

[1]
alt text
[2]
alt text

user can still select an account [1], but then it goes into endless loading [2]

はい。私のデバイスで同じ事が発生しています。
(Yes. The same thing is happening on my device.)

A couple of issues have been opened on Google Issue Tracker:
https://issuetracker.google.com/issues/178029596

Hopefully Google takes notice soon.

I found a solution, it is strange but anyway it works for me:

  • Delete your Cloud project
  • Instead of the following instructions from http://developers.google.com/fit/android/get-started create a new project with firebase.
  • Add an android app in firebase project settings
  • Add both the SHA1 and SHA256 to it.
  • Download google-services.json to android/app in your project folder.
  • Make sure to have my "support email" set on general Project settings.

If this not help, please also check https://stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google

Guys have a similar problem with GoogleSignIn

I found a solution, it is strange but anyway it works for me:

  • Delete your Cloud project
  • Instead of the following instructions from http://developers.google.com/fit/android/get-started create a new project with firebase.
  • Add an android app in firebase project settings
  • Add both the SHA1 and SHA256 to it.
  • Download google-services.json to android/app in your project folder.
  • Make sure to have my "support email" set on general Project settings.

If this not help, please also check https://stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google

Guys have a similar problem with GoogleSignIn

IT WORKS!!!

#58 (comment)
ありがとうございます。
この返信を参考にして設定したところ、問題が解決しました!
私のプロジェクトでは、既にFirebaseでプッシュ通知を使っています。

実際に私が行った手順を送付いたします。

  • Google Cloud Platformの対象プロジェクトからOAuth2.0クライアントIDを削除しました。
  • Firebaseの対象プロジェクトの設定 > 全般 > マイアプリ > Androidアプリ > SHA証明書フィンガープリントにSHA-1のフィンガープリントを追加しました。
  • google-services.jsonを再ダウンロードしてappフォルダに格納(または変更)しました。

=====

Thank you very much.
I set it up with reference to this reply and the problem was solved!
My project already uses push notifications in Firebase.

I will send you the procedure that I actually took.

  • The OAuth 2.0 client ID has been deleted from the target project of Google Cloud Platform.
  • Added SHA-1 fingerprint to Firebase target project settings> General> MyApps> Android app> SHA-1 certificate fingerprint.
  • I re-downloaded google-services.json and stored (or modified) it in the app folder.

I found a solution, it is strange but anyway it works for me:

  • Delete your Cloud project
  • Instead of the following instructions from http://developers.google.com/fit/android/get-started create a new project with firebase.
  • Add an android app in firebase project settings
  • Add both the SHA1 and SHA256 to it.
  • Download google-services.json to android/app in your project folder.
  • Make sure to have my "support email" set on general Project settings.

If this not help, please also check https://stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google

Guys have a similar problem with GoogleSignIn

I can also confirm that this works, but hope there will be some guidance on how to use the fit api without needing to setup firebase.

Another workaround is to switch your project (Oauth Consent Screen in console.developers.google.com) from testing to production.

Another workaround is to switch your project (Oauth Consent Screen in console.developers.google.com) from testing to production.

worked for me

It worked for me too!

Having the same issue. All credentials (SHA1, Package Name, App Name) is properly set, and my Firebase project's Google Sign In method is enabled. Have tried what #58 (comment) said, but the OAuth2 screen just keeps on loading infinitely. I'm using Java. Any help is appreciated.

I can't get this to run.

In order to switch OAuth Consent Screen from test to production I need to record a video of how the google fit data is used within my app. I can't record the video because its not even working on my google accounts specified for testing.

So in order to make it work I have to show you a video of it working?

I found a solution, it is strange but anyway it works for me:

* Delete your Cloud project

* Instead of the following instructions from http://developers.google.com/fit/android/get-started  create a new project with firebase.

* Add an android app in firebase project settings

* Add both the SHA1 and SHA256 to it.

* Download google-services.json to android/app in your project folder.

* Make sure to have my "support email" set on general Project settings.

If this not help, please also check https://stackoverflow.com/questions/54557479/flutter-and-google-sign-in-plugin-platformexceptionsign-in-failed-com-google

Guys have a similar problem with GoogleSignIn

Had the same issue, this works for me as well! Thanks a lot

Same here,
user can still select an account [1], but then it goes into endless loading [2]

[1]
alt text
[2]
alt text

I already created with firebase, but it have never fixed at my side. what solution? I hope your guide.

Same here,
user can still select an account [1], but then it goes into endless loading [2]
[1]
alt text
[2]
alt text

I already created with firebase, but it have never fixed at my side. what solution? I hope your guide.

Follow this step
Go to Google Console -> Select OAuth consent screen ->Test Users->Add Users->add your gmail account which you are using as signin and make sure you have added the scopes

Hi I followed the same process not able to proceed ahead @akdogan
@vkubiv Hi did you find any solution

I'm seeing this same issue on a different app where the GCloud project is under a GSuite account. This project was created recently.

Only users that belong to the orgnization are able to sign in. The OAuth consent screen is in "Production" and open to external users so the behavior is unexpected. There is no error whatsoever – just infinite loading.

I'm wondering if the app must be verified to work with external users (it says verificaiton not required)? This could be what's happening to others in this thread but Google's documentation is not clear enough for me to make a conclusion.
https://developers.google.com/fit/verification#what_are_the_authorization_changes

Edit: it suddenly started working this week - but now the consent screen shows the 'Google did not verify this app' banner. Although the consent screen on GCP still says no verification required.

I am having the exact same issue as @osamaqarem. Members of our organization can sign in, but we get the infinite loading progress spinner whenever we use a Google account that isn't part of our organization. Our is also external, we've specified all of the fields, and we are going through the verification process. Unfortunately, we've been working on this for a couple of weeks now and ours hasn't magically started working.

@ToastedNickel It's suddenly stopped working for us again this week... without any code changes or adjustments to the GCloud project. Any chance you found any information about this? We're considering to pay for GCloud support so we can get some answers.

@ToastedNickel It's suddenly stopped working for us again this week... without any code changes or adjustments to the GCloud project. Any chance you found any information about this? We're considering to pay for GCloud support so we can get some answers.

Ours eventually started working, but not until Google finished verifying our account.

The publish status is production and the user type is external, it should work with an unverified app warning, but it gets stuck on a blank white popup.
It only worked after passing Google's OAuth consent screen review.
Because development/test apps are not subject to verification, users had to experience inconvenience before verification.

Any update on the above issue? We started facing it from 15 September.

I can also confirm that our issue was resolved as soon as Google verified our app.

Same here,
user can still select an account [1], but then it goes into endless loading [2]
[1]
alt text
[2]
alt text

I already created with firebase, but it have never fixed at my side. what solution? I hope your guide.

Follow this step Go to Google Console -> Select OAuth consent screen ->Test Users->Add Users->add your gmail account which you are using as signin and make sure you have added the scopes

working for me! thanks!