Comments (4)
sorry I didn't read apple's document well.
from react-native-apple-healthkit.
@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.
@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.
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)
- ios 10 + meditation? HOT 1
- Some identifiers not compatible with version smaller than iOS 9.3 HOT 1
- Delete Method to delete previously stored object
- AppleExerciseTime causes instacrash on OS below iOS 9.3
- Header paths with RN 0.40 causes errors. HOT 2
- is this repo dead? HOT 4
- Looking for collaborators HOT 7
- Does it support Android? HOT 1
- Publish latest version to npm HOT 3
- _reactNativeAppleHealthkit2.default.isAvailable is not a function HOT 6
- Crash Stack (potentially date/calendar related) HOT 1
- How to access HKAuthorizationStatus??
- only "Constants" is available on runtime HOT 1
- Trying to run: Error :CFBundleIdentifier
- Try to run, the error HOT 2
- I found that when I manually enter the number of steps, the return of the parameters are manually entered value, can filter the user manually enter the number of steps? HOT 1
- How can I get data from AppleExersiseTime? HOT 1
- Build getting failed HOT 5
- Calories Burnt Data
- Could not find a declaration file for module "react-native-apple-healthkit"
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-apple-healthkit.