aboveyunhai
aboveyunhai
please supply a example with expect value and incorrect value you receive.
@alexbaishs https://github.com/StasDoskalenko/react-native-google-fit/blob/291b18a245c88e86c1b212ec8c25594764cca21a/android/src/main/java/com/reactnative/googlefit/CalorieHistory.java#L158-L166 This is the exact place where basal is calculated (which is not implemented by me), and I'm not exactly sure how the correct value/formula will be, you can...
> It looks like when `basalCalculation` is `true`, the average BMR is subtracted from the total calorie value. I may be misunderstanding here, but I think the result of that...
There is not such a "google fit" account. You just need to get necessary permissions for the "google" account.
@kmlzielinski can you change to async/await syntax instead of callback. So you can simply do ``` const result = await openFit(); //or openFit().then((msg) =>{}). ``` callback argument is slowly removed...
what about catch error on your side instead ? ```javascript try { GoogleFit.blablabla(); }catch(err){} ``` the current problem is many cannot distinguish the initialization error and authentication error, and don't...
@Waltari10 it was already handled. https://github.com/StasDoskalenko/react-native-google-fit/blob/291b18a245c88e86c1b212ec8c25594764cca21a/android/src/main/java/com/reactnative/googlefit/GoogleFitModule.java#L510-L516 I believe you still need to wrap it in the Javascript try catch to see how to turn out.
First, you don't need to link if your RN version is above 0.6. You need to follow the instruction https://developers.google.com/fit/android/get-api-key#find_your_apps_certificate_information then request your OAuth 2.0 Client ID . the development...
Hmm, it's really hard to tell. I will try to create a fresh new RN app recently and go through the entire auth process. And then rewrite the auth instruction...
@NguyenHoangMinhkkkk you are missing the scope, also read the doc carefully. It's on the doc but ppl keep missing those lines. ``` Scopes.FITNESS_HEART_RATE_READ, ``` I hadn't managed a proper way...