Google Fit - Sleep as Android

When enabling the integration, you are asked whether you’d like to synchronize your past records. This is currently limited up to 3 years. All new sleep records are then synchronized with Fit.


This is a companion discussion topic for the original entry at https://docs.sleep.urbandroid.org//services/google_fit.html

Will it create problems for Sleep if I dont integrate G Fit? Does it need data from H Fit in order to work?

If both Notify and Fit and Sleep are syncing with G Fit…will this create duplicates and conflicts?

I dont mind sleep pulling g data from fit, but I would prefer that only one app provides sleep data. N&F has been doing it for awhile

Hello, Google Fit integration is optional. The app does not need to it to function properly… it is just another storage where you store your sleep data. We can import walking sessions, sport tags and heart rate from Fit but this is just sugar on top I think…

If you sync Notify & Fitness into Fit that you will have your Mi Band or Amazfit data synced there - not the data Sleep as Android produces…

Hello, the awake time was not subtracted from sync to Google fit. Is this a bug? Many thanks

Hi,

is there a way to disable the syncing of heart rate to google fit?

It always overrides the heart rate that is imported directly from the “google fit wearos app”…

Google Fit was nicely pulling in my Sleep data, until Sept 21, when it stopped. I’ve toggled Google Fit on/off/on in Settings, and I “Sync now”-d, but to no avail. Thoughts?

This is happening for me as well, whatever I try I can’t get it to sync anymore.

@bahuma20 sorry for the late answer… yes tehre is if you connect with Sleep as Android you will not give it a permission to the HR data… hope that helps…

@EdwardamousD yes this is unfortunately a problem of the data model in Google Fit… even when we include the awake times they still show the full time of the whole session as the time of sleep… we did discuss this with the Fit guys… but not sure if they are going to change it :frowning:

@Endicott @Wouter_van_noort guys are you on 1+, what is your device? Can you please send a menu - report a bug if you did not do this yet? Many thanks…

Pixel 4XL Android 11 - will send bug report, too

And reading your responses I now understand why HR is missing, too - just didn’t think Sleep was involved…

Many thanks for the report. We know what is the issue now. It is related to the ACTIVITY RECOGNITION permission hell as described here:
https://developer.android.com/about/versions/10/privacy/changes#physical-activity-recognition

This issue is only present in the BETA channel and we will release a fix ASAP…

Many thanks…

I did sent you a bug report via email.
I’m on Huawei Mate 20 Pro running Android 10.