Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is the method checkPermission still in progress? #1

Open
matthoiland opened this issue Jan 8, 2020 · 2 comments
Open

Is the method checkPermission still in progress? #1

matthoiland opened this issue Jan 8, 2020 · 2 comments

Comments

@matthoiland
Copy link

First off, thanks for this great library! I've been looking to play with HealthKit records and this helps a lot!

I see in RCTAppleHealthKit.h there is a method checkPermission defined. Is this feature still in progress?

If so, could it accept a set of permission types similar to initializeHealthKit? (Currently it looks like it will accept only a string)

Again, thanks for this project!

@calebmackdavenport
Copy link
Owner

Correct me if I'm wrong - You would expect checkPermission to determine if permission has already been authorized?

I found this to not be particularly useful because if you make the call to request access even if the user has already granted it:

  1. It does not generate an additional prompt
  2. The resource usage is nearly negligible

It would be very simple to write though. If you want - describe your use case and I can update to include a check permission function.

@matthoiland
Copy link
Author

It would be helpful for permission priming the user – being able to know existing permissions to conditionally show a modal that explains and prepares the user to accept the system permission modal.

Also, if the user has denied access, I can conditionally show a modal that explains how to grant access and link them to their system settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants