Giter Site home page Giter Site logo

kilohealth / rn-fitness-tracker Goto Github PK

View Code? Open in Web Editor NEW
95.0 4.0 18.0 10.7 MB

React Native module to interact with Google Fit and Apple HealthKit.

License: MIT License

Java 7.48% Objective-C 3.77% Ruby 2.07% TypeScript 31.73% Kotlin 20.19% JavaScript 6.90% Starlark 0.30% Makefile 0.75% C++ 3.42% Objective-C++ 1.79% Swift 21.52% Shell 0.07%
react-native ios android google-fit healthkit steps activity body fitness health

rn-fitness-tracker's Introduction

SWUbanner

@kilohealth/rn-fitness-tracker

Latest release

npm version

About

React Native library for fitness & health tracking, based on Google Fit (Android) and HealthKit (iOS) native APIs.

  • Cross Platform: Currently supports iOS (excluding iPad) and Android.
  • Scalable: This library is used in most of our big scale products and developed with love by people from @kilohealth and all other wonderful open source supporters
  • Tested: Every release goes through our automated tests, and after adoption - our QA personnel
  • Community driven: We're always looking for your ideas, contributions and issue reports

Getting started

Check out our documentation.

rn-fitness-tracker's People

Contributors

alarm109 avatar dependabot[bot] avatar dovilemel avatar doville avatar jonasbaj avatar lukebars avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

rn-fitness-tracker's Issues

Not Able to Read Health Step Count Data Without open Health App

I am using this plugins then getting the issue when Health application not launch and want to get the step count then not able to get step count, but when I open the Health app then it's reading perfactaly,

So can you help me how can read the step count data without open Health app

Anyware we have to put the code for active and read the Health app step data, It may some code we have to put in AppDelegate file.

Please suggest me. please help for this issue

[iOS/Android] πŸ”₯ Typescript check fails for most files

  • Platform that you're experiencing the issue on:

    • iOS
    • Android
  • @kilohealth/rn-fitness-tracker version you're using that has this issue:

    • 3.1.0

Issue

Thanks for this library.

One of my commit hooks runs tsc and I consistently get error TS2366 triggering.
image

For now my workaround is just to disable the Typescript check, but I would like a fix.

Using //@ts-nocheck or //@ts-ignore to ignore the file with the import statements doesn't seem to work either.
I've also tried setting noImplicitReturns to false in tsconfig but that has no effect.


Environment

Click To Expand

react-native info output:

System:
  OS: Windows 10 10.0.19044
  CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  Memory: 1.04 GB / 15.85 GB
Binaries:
  Node:
    version: 18.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.10
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 9.6.6
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-223.8836.35.2231.10811636
  Visual Studio: Not Found
Languages:
  Java:
    version: 11.0.9
    path: /c/Program Files/Common Files/Oracle/Java/javapath/javac
  Ruby:
    version: 3.0.3
    path: C:\Users\[user]\Ruby30-x64\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli": Not Found
  react:
    installed: 18.2.0
    wanted: 18.2.0
  react-native:
    installed: 0.72.5
    wanted: 0.72.5
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found
  • Are you using TypeScript?
    • Yes, 5.1.6

authorized false shouldOpenAppSetting false issue

hi,

i try this package in my project but cant auth to api. my code is here. i open app and select already opened google account.

(https://user-images.githubusercontent.com/16406484/110250034-57315f80-7f8a-11eb-8335-f9ce5df28cf2.jpeg)

import React, {useEffect} from 'react';
import {SafeAreaView, Text} from 'react-native';
import HealthTrackerAPI from '@kilohealth/rn-fitness-tracker';
import HealthDataTypes from '@kilohealth/rn-fitness-tracker';

const Tracking = () => {
  const login = async () => {
    // Setup Health tracking
    const authorizationStatus = await HealthTrackerAPI.setupTracking(
      [HealthDataTypes.Carbohydrates, HealthDataTypes.Calcium], // write types
      [HealthDataTypes.Carbohydrates, HealthDataTypes.Fiber], // read types
    );
    console.log(authorizationStatus);
  };
  useEffect(() => {
    (async () => {
      login();
    })();
  }, []);

  return (
    <SafeAreaView>
      <Text>Hello</Text>
    </SafeAreaView>
  );
};
export default Tracking;

The automated release is failing 🚨

🚨 The automated release from the master branch failed. 🚨

I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.

You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this πŸ’ͺ.

Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.

Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the master branch. You can also manually restart the failed CI job that runs semantic-release.

If you are not sure how to resolve this, here are some links that can help you:

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.


No Slack web-hook defined.

A Slack Webhook must be created and set in the SLACK_WEBHOOK environment variable on your CI environment.

Please make sure to create a Slack Webhook and to set it in the SLACK_WEBHOOK environment variable on your CI environment. Alternatively, provide slackWebhook as a configuration option.


Good luck with your project ✨

Your semantic-release bot πŸ“¦πŸš€

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.