Comments (11)
@dozel google play services doesn't work on emulator, you need to test it on the device for that.
from react-native-google-fit.
@MJ0826 hello! Do you have google fit installed on the device to ensure that array is not empty?
Which react native version do you use?
Anyway module now in beta, so I'll check out what is going on.
Thanks for acitivity!
from react-native-google-fit.
What i figured out is you are not saving the data which we get in the observe Steps, so no data is being saved through the api, that is why it is returning empty data when i try to retrieve it.
Also, I am using rn version 0.39.
from react-native-google-fit.
@MJ0826 I'm stuck with this. The strange is weights method works fine.
from react-native-google-fit.
@MJ0826 I guess you experienced some problems with access level because almost all users told they have no problems like this.
For example:
#4
from react-native-google-fit.
I encountered the same issue on the emulator, but once I debugged using an android phone, I got results. Why would that happen on the emulator @StasDoskalenko ?
from react-native-google-fit.
@StasDoskalenko I think i can get the steps only when i use google fit app and save some data through that, If i use this module and try retrieving the steps it will return an empty array, because you are not saving the data you get when one walks, so when you try to get the history it will return an empty array.
from react-native-google-fit.
@dozel @MJ0826 hi guys! Thanks for testing. I guess google has changed their policy. Because less than few weeks ago the app worked fine on the emulator. Maybe we can find out some information how to turn google services on emulator again? Thanks!
from react-native-google-fit.
I have genymotion setup and was able to install Google Play Services on my emulator. I've also added Google Fit on the emulator, however even after adding step data into Google Fit, I'm always receiving 0. I was able to get results with a physical device. It'd be a shame if it didn't work with an emulator. Hope someone here has better luck!
from react-native-google-fit.
@ALL check again. New version is out.
Thanks!
from react-native-google-fit.
Hi @StasDoskalenko , Any update on saving the steps to Google Fit?
from react-native-google-fit.
Related Issues (20)
- getActivitySamples missing data HOT 3
- Google fit consents screen change HOT 1
- AUTH_DENIED Authorization cancelled HOT 2
- isAvailable() doesn't work on Android 11+ without change to AndroidManifest.xml HOT 1
- getDailySteps returns empty array HOT 3
- passing callback to `observeSteps` causes crash HOT 6
- Running the react-native google fit with background fetch crashes the app HOT 1
- Data for users who never used Google Fit HOT 3
- Authorize Issue in bundle release HOT 6
- GoogleFit.getXXXSamples(options) returns with no data HOT 1
- Using new GoogleSignInClient
- I want to retrieve information about connected users.
- How to get Read Sleep Data by sessions of type sleep as Document HOT 4
- GoogleFit.disconnect() not working
- App crash on bundleRelease - java.lang.IllegalStateException
- How to allow access to our react native mobile app without mandatory Google OAuth sign in blocking users progressing (is it possible to easily skip)? HOT 3
- Not working in release or debug in .aab extention HOT 12
- Firebase Error: Attempt to invoke virtual method 'java.lang.String java.lang.String.to LowerCase()'on a null object reference HOT 1
- Missing source information for some datatypes
- Google Fit Sync working in prod apk but not in Playstore build (With firebase) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-google-fit.