openScale icon indicating copy to clipboard operation
openScale copied to clipboard

openScale Sync no longer able to sign in to Google Fit

Open TheRedWolf opened this issue 1 year ago • 8 comments

Describe the bug When attempting to sign in to Google Fit (necessary repeatedly due to https://github.com/oliexdev/openScale/issues/895) sign in now fails with the message:

This app is blocked This app tried to access sensitive info in your Google Account. To keep your account safe, Google blocked this access.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'openScale Sync'
  2. Check Google Fit status, which will likely be "Google Fit sign in failed".
  3. Go to the menu on the top left corner, then select Google Fit
  4. Ensure sync is enabled, then tap Google sign in.
  5. Screen will darken slightly and a new popup will be displayed with the above error message

** Expected behaviour**

Successful sign-in and syncing to Google Fit

Additional context The need to sign in repeatedly is partly the cause for this issue being identified. This seems to have existed since 2022 in issue 895 (https://github.com/oliexdev/openScale/issues/895)

Debug log 2025-01-18 12:08:50.241 Debug [2] c: Debug log enabled, openScale sync v0.3.5 (9), SDK 34, samsung SM-S918B 2025-01-18 12:08:52.488 Debug [2] a: Check GoogleFit sync status 2025-01-18 12:08:52.489 Error [2] a: Google sign in expired 2025-01-18 12:08:52.691 Error [2] a: Google Fit sign in failed 2025-01-18 12:08:53.341 Debug [2] a$b: Google sign in button clicked 2025-01-18 12:08:59.265 Error [2] a: Google Fit permission denied 2025-01-18 12:09:02.923 Debug [2] c: openScale version 65 with content provider API version 1 2025-01-18 12:09:02.924 Debug [2] a: openScale version is ok(com.health.openscale) 2025-01-18 12:09:02.929 Debug [2] a: openScale user found(REDACTED) 2025-01-18 12:09:02.929 Debug [2] a: Check GoogleFit sync status 2025-01-18 12:09:02.930 Error [2] a: Google sign in expired 2025-01-18 12:09:02.930 Debug [2] d: Check MQTT sync status 2025-01-18 12:09:02.930 Error [2] a: MQTT sync is disabled 2025-01-18 12:09:02.930 Debug [2] WgerSync: Check Wger sync status 2025-01-18 12:09:02.930 Error [2] a: Wger sync is disabled 2025-01-18 12:09:02.939 Debug [2] c: openScale version 65 with content provider API version 1 2025-01-18 12:09:02.940 Debug [2] a: openScale version is ok(com.health.openscale) 2025-01-18 12:09:03.121 Error [2] a: Google Fit sign in failed 2025-01-18 12:09:04.382 Debug [2] c$a: Debug log disabled

TheRedWolf avatar Jan 18 '25 01:01 TheRedWolf

+1

thekoma avatar Jan 26 '25 08:01 thekoma

I'm seeing the same issue on my Pixel 9

Image

liutikas avatar Jan 29 '25 03:01 liutikas

Google Fit APIs will be disabled by Google in June so I would expect that this project would have to migrate to the health connect android API instead

https://developers.google.com/fit

pantherale0 avatar Feb 06 '25 18:02 pantherale0

Is a health connect support planned?

fir3drag0n avatar Feb 09 '25 10:02 fir3drag0n

@fir3drag0n the openScale-sync page mentions Health Connect in its features, but as of 0.3.5 (9) Google Fit is still listed in the app.

voyager avatar Mar 05 '25 00:03 voyager

And updates? Happy to beta test...

TheRedWolf avatar Mar 27 '25 11:03 TheRedWolf

Still hoping for an update on this, particularly as I believe a version has been written to support health connect as per the comment https://github.com/oliexdev/openScale/issues/1109#issuecomment-2708851483

TheRedWolf avatar May 07 '25 03:05 TheRedWolf

Regarding synchronization with health services, please note that Google Fit is no longer being actively supported by Google, and the Google Fit API has been deprecated.

As a result, I have transitioned the synchronization functionality in openScale sync to use Health Connect instead. Health Connect is the new standard for managing health and fitness data on Android.

The upcoming beta version (0.4) of openScale sync includes this transition to Health Connect and features a complete rewrite of the application. If you'd like to help test the new Health Connect integration and see if this issue is resolved in the updated version, please consider joining the beta program. You can find more details and instructions on how to join in our pinned beta testing invitation issue here: https://github.com/oliexdev/openScale/issues/1124

oliexdev avatar May 10 '25 19:05 oliexdev