-
Hello there, i would just like to know if there is a function to just check the permission state without calling reference is this fcm method: https://rnfirebase.io/reference/messaging#hasPermission |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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 |
Beta Was this translation helpful? Give feedback.
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