GithubHelp home page GithubHelp logo

Comments (4)

tsugitta avatar tsugitta commented on September 4, 2024

sorry I didn't read apple's document well.

from react-native-apple-healthkit.

ApolloMuses avatar ApolloMuses commented on September 4, 2024

@tsugitta Can you explain how you got around this? I'm pretty new to RN and am trying to figure this out too...thanks!

from react-native-apple-healthkit.

tsugitta avatar tsugitta commented on September 4, 2024

@kh1990
I created this issue because I think it's possible to know whether the user's reading permission is denied or not by using authorizationStatus(for:) . but I figured out it's impossible as Apple says

This method checks the authorization status for saving data.

To help prevent possible leaks of sensitive health information, your app cannot determine whether or not a user has granted permission to read data. If you are not given permission, it simply appears as if there is no data of the requested type in the HealthKit store.

I closed this issue because I'd just like to get reading permission and it turned out impossible, but someone may need authorizationStatus(for:) to get saving permission (but it can be gotten by current library's saving method because it should show errors when saving).

from react-native-apple-healthkit.

ApolloMuses avatar ApolloMuses commented on September 4, 2024

Ahh I understand your original comment now. Yeah i wonder if it can be tested say saving a 0.0001 step add? and then deleting it? lol

from react-native-apple-healthkit.

Related Issues (20)

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.