permission-flow-android
permission-flow-android copied to clipboard
Initial permission flow response returns denied state
Hi there
Firstly thank you for this great library, nice work!
I've implemented the library and I've found that the state returned for a permission that has never been requested before, is "denied".
Eg if I request Manifest.permission.ACTIVITY_RECOGNITION then it'll return a Permission state object that contains false for "isRationalRequired"
As a second use case, if I manually Allow and then Disable the permission from settings, when I resume the app, the flow will then emot a Permission state with the "isRationalRequired" as true.
Is this a known setup and was the library designed this way? If so, how can I know whether to prompt the user to enable the permission or not when it's the first time opening the screen or feature?
Thank you