Kudo / react-native-v8

Opt-in V8 runtime for React Native Android
MIT License
924 stars 69 forks source link

notificationEmitter.addListener is not a function error #206

Closed to-dy closed 2 months ago

to-dy commented 3 months ago

Hello 👋🏾 On version 2.5.0 I get the following error when using expo-notifications TypeError: notificationEmitter.addListener is not a function, js engine: v8

This only happens when v8 is enabled.

stack trace ![image](https://github.com/user-attachments/assets/84ae51c5-9564-4010-956e-b496cb68f5ef)

Screenshot 2024-07-18 at 2 46 00 PM

to-dy commented 3 months ago

Test app with reproducible error https://github.com/to-dy/TestApp.

Hello @Kudo, Please do you have any pointers on how to resolve this. This issue only happens when using the v8 engine, from Expos NotificationsEmitterModule specifically ExpoNotificationsHandlerModule