openScale Sync no longer able to sign in to Google Fit
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:
- Go to 'openScale Sync'
- Check Google Fit status, which will likely be "Google Fit sign in failed".
- Go to the menu on the top left corner, then select Google Fit
- Ensure sync is enabled, then tap Google sign in.
- 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
+1
I'm seeing the same issue on my Pixel 9
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
Is a health connect support planned?
@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.
And updates? Happy to beta test...
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
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