react-native-android-notification-listener icon indicating copy to clipboard operation
react-native-android-notification-listener copied to clipboard

🐞 [BUG] Cannot handle property requestPermission of null

Open MattieTK opened this issue 2 years ago • 3 comments

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

  1. Install the example app
  2. npm start
  3. npm run android
  4. 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

MattieTK avatar Oct 20 '23 02:10 MattieTK

Any updates ???

LAKSHAYNE avatar Mar 04 '24 10:03 LAKSHAYNE