Skip to content

Get permission state without triggering the OS dialog #675

Answered by mikehardy
tastydev asked this question in Q&A
Discussion options

You must be logged in to vote

I strongly suggest using react-native-permissions https://github.com/zoontek/react-native-permissions#check

Mixing and matching permissions libraries can lead to callback race conditions from the native APIs on Android, and surely you will need to check on more permissions than just notification? So you'll likely be using permissions from either react-native APIs or these APIs and already mixing permissions callbacks

Better to centralize. Use react-native-permissions for all permissions management I think

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@pke
Comment options

@mikehardy
Comment options

Answer selected by tastydev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants