lucaspbordignon / rn-apple-healthkit

A React Native package for interacting with Apple HealthKit
https://www.npmjs.com/package/react-native-health
MIT License
520 stars 298 forks source link

Option to show HealthKit dialog again after selecting "Don't allow" #93

Open salimsket opened 5 years ago

salimsket commented 5 years ago

Could it be possible to enable a re-prompt of the HealthKit permission? Once disallowed, it's unclear how to handle and perhaps show a UI error message to inform the user to open the Health app and enable it in "Sources".

filipecatraia commented 4 years ago

Any time your app requests new permissions, the system displays a form with all the requested data types shown. — Source

You could experiment with asking for new permissions, and see if old ones show up too. I don't think so, as a long time Apple Health user. But maybe the project maintainer knows better :)

In terms of error handling, and showing that UI message, you could try using the package's API: