react-native-android-notification-listener
react-native-android-notification-listener copied to clipboard
🐞 [BUG] Cannot handle property requestPermission of null
Is there an existing issue for this?
- [X] I have searched the existing issues
Current Behavior
The example app, when run, fails with the following error:
WARN Possible Unhandled Promise Rejection (id: 2):
TypeError: Cannot read property 'requestPermission' of null
TypeError: Cannot read property 'requestPermission' of null
When logged out RNAndroidNotificationListener returns null.
Expected Behavior
The app should run as normal
Steps To Reproduce
- Install the example app
- npm start
- npm run android
- Then open the app and observe the errors on the console
Library version that you are testing
5.0.1
Device
Emulator Pixel
Android Version
13
Anything else?
No response
Any updates ???