Google Fit - Sleep as Android

What exactly triggers the automatic addition of #sport? It does not seem to match Google Fit for me. For example, I was very active Monday 12/14, but noticed that night (Tuesday 12/15) that SaA automatically added #newmoon while Fit added nothing. This month I show 7 with #sport in SaA but reached goals of both step & heart points 9 times in Fit. Could the SaA automatic tags be overriding the automatic tags by Fit?

P.S. I was initially puzzled what the sport tag meant since it appeared as a symbol automatically: I thought it was sleepwalking!

Hello, at the moment we require at least a one hour non-walking sport session… but in the new version which we are working on we will consider Google Fit Heart points and if you mean the heart point goal for that day we will add a #sport tag

1 Like

Hi, I’m facing a syncing issue where some of my latest sleeping records in Google Fit are missing sleep stages. I tried to manually sync in SaA under Services settings but it’s still not present. Other applications such as Amazfit Zepp app and Notify for fitness app have the sleep stages synced in the latest records.

Nevermind, I felt silly. For those who are wondering, you have to wait at least a day before the Sleep stages show up in Google Fit.

Hello @Danana yes we have reported those delays to the Fit team… it seems there is probably some batch process which adjusts the stages and it takes few hours to show… nothing on our end what we could do I’m afraid…

The hear rate picked up during sleeping, is it meant to sync to Google Fit?

It not showing up for me. The sleep hours are.

Same happening to me.
It stopped syncing the heart rate to Google fit

Many thanks for reporting and sorry for the issues. We are aware of the problem and are working on a fix…

Any update on this? Bought an polar HR band, works fine in SaA but the heart rate is not sync to google fit…

@Nighthawk8 this issue should be resolved in the latest BETA version of the app.

Please first join our BETA Testers group at:
https://groups.google.com/forum/#!forum/sleep-as-an-droid
That you can opt-into the BETA at the following address:
https://play.google.com/apps/testing/com.urbandroid.sleep
Or simply by visiting our Play Store listing and tapping “Join BETA”

After that you should be starting receiving latest BETA updates through the Play Store.

Sorry for the late response but indeed after the beta update it’s working fine. Thx!

@Nighthawk8 great news… many thanks…

Can’t integrate Google fit with the application no result after selecting account to be synced

1 Like

I can’t sync to Google fit either, the connection screen hangs like in the screenshot

Hello @Andres_Reyes_Monge, what version of the app you have? Menu > release notes…

Can you please try this with the latest BETA version of the app?

Please first join our BETA Testers group at:
https://groups.google.com/forum/#!forum/sleep-as-an-droid
That you can opt-into the BETA at the following address:
https://play.google.com/apps/testing/com.urbandroid.sleep
Or simply by visiting our Play Store listing and tapping “Join BETA”

After that you should be starting receiving latest BETA updates through the Play Store.

@Andres_Reyes_Monge I’m able to reproduce the issue even in BETA, many thanks for reporting andsorry for the issues.

Google Fit did make security related changes to Google Fit and apps will only be allowed to basically write to Fit… this has caused some issue in the transition process and Google Fit authentication may not be available for new users some time in Sleep as Android…

Existing users who did already consent to connect Sleep as Android with Google Fit are working for the time beeing…

We are working on it to bring the fixes out ASAP… this will be first fixed in the BETA channel so ideally please first join our BETA Testers group anyway - see the guide in my previous reply…

Hopefully we will get this working in the next few days…

1 Like

Hello,

we have a fix for the recent Fit issues in the latest BETA version.

The APK is available from this link:
https://sleep.urbandroid.org/wp-content/uploads/release/sleep-20210929-beta-release.apk

Or if you join the BETA release channel you can get it through the Play Store.

Please first join our BETA Testers group at:
https://groups.google.com/forum/#!forum/sleep-as-an-droid
That you can opt-into the BETA at the following address:
https://play.google.com/apps/testing/com.urbandroid.sleep
or simply by visiting our Play Store listing and tapping “Join BETA”

After you receive version 20210929 (you can check that in menu - Support - Release notes).

If you still cannot connect with Fit after the update, please to to your Google Account > Data & Privacy > third party apps with account access … and first remove the Sleep as Android… than please reboot the phone (to clear the scopes from local caches) and try to connect Google Fit again.

Sorry for the issues. Hope that this will resolve the problems…

Please let us know…

I’m actually already running the latest beta and can confirm that connection to google fit is now correctly working

@Andres_Reyes_Monge big thanks for letting us know, this is great news!

We had to drop some feature in Fit though so now we are writing / reading sleep phases and HR, but are no more syncing your profile data and we are no more doing automatic #sport based on reaching your activity goals…

At the moment reading 3rd party sleep records and HR is still working, but we may expect this to stop working later and we will probably need to do another fix release of the app to accommodate for this. This is all due to privacy updates in Google Fit…

1 Like

Hi @petr-urbandroid,

I’m back to trying to load my O2Ring’s three sensor outputs into Sleep as Android.
I just re-read your reply about using Google Fit. In your reply in Oximeter - Sleep as Android - Documentation - Sleep as Android (urbandroid.org), you mentioned aggregated data.
Does that mean SaA won’t expect raw sensor data to arrive from Google Fitness Store?

If SaA will accept raw sensor data from Google Fit, then can you please help me identify what the movement raw sensor data type should be called?

The Google Fit scenario I envisioned:

  1. O2Ring data saved to .csv file using its included app.
  2. Create a Google Fit dataset for each of the three O2Ring sensors.
  3. Load the parameters and ask SaA to read the Google Fit data (sync).

I looked in here: https://developers.google.com/fit/datatypes?hl=en_US

Since live reception of the O2 Ring’s motion data is (currently) not possible, batch import the morning after seems necessary. To benefit from the SaA algorithms’ current power and future improvements, my data should arrive as sensor data, right? Otherwise, for me, SaA is acting more as a renderer (dependent on Google’s sleep analysis’ aggregated data); I prefer to use SaA’s own algorithms to provide a complete sleep analysis solution.