StasDoskalenko / react-native-google-fit

A React Native bridge module for interacting with Google Fit
MIT License
335 stars 209 forks source link

GetSleepSamples function is not working on android #307

Open MUZAFFAR-PURELOGICS opened 2 years ago

MUZAFFAR-PURELOGICS commented 2 years ago

GetSleepSamples function is not working on android. I added manually sleep data into the app. But i am getting an empty array on function response

VictorGarcia commented 2 years ago

I had this happened to me and it turned out to be due to the delay Google Fit has to sync up data. I added sleep data through the Google Fit app on my iPhone and was only able to retrieve it on Android using the library a few hours later. It made me go nuts for those few hours...

Funnily enough if you enter data through the API using the library you will be able to retrieve it instantly.