zo0r / react-native-push-notification

React Native Local and Remote Notifications
MIT License
6.73k stars 2.05k forks source link

[IOS] When import PushNotifications i get a error new NativeEventEmitter() and cant open my app #2326

Open jorgeferreira008 opened 1 year ago

jorgeferreira008 commented 1 year ago

Bug

Hi, i just import PushNotifications and i get this error on IOS, in android it works very good. The error is the following

Captura de ecrã 2022-11-10, às 22 31 03

Environment info

react-native info output:

System: OS: macOS 12.5.1 CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz Memory: 1.41 GB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.17.0 - /usr/local/bin/node Yarn: 1.22.10 - /usr/local/bin/yarn npm: 8.15.0 - /usr/local/bin/npm Watchman: Not Found Managers: CocoaPods: 1.11.3 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 23, 28, 30, 31 Build Tools: 30.0.2, 30.0.3, 31.0.0 System Images: android-24 | Google Play Intel x86 Atom, android-30 | Intel x86 Atom_64, android-30 | Google APIs Intel x86 Atom Android NDK: Not Found IDEs: Android Studio: 4.2 AI-202.7660.26.42.7351085 Xcode: 14.1/14B47b - /usr/bin/xcodebuild Languages: Java: 16.0.2 - /Library/Java/JavaVirtualMachines/jdk-16.0.2.jdk/Contents/Home//bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.2 => 0.70.2 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

I just have this index.js code nothing more:

Captura de ecrã 2022-11-10, às 22 33 07

Thanks for all your help

brainone-pt commented 1 year ago

I have the same problem with my app.

swcloud1 commented 1 year ago

I have the same issue as well

micutudor commented 1 year ago

Any updates?

Gijuno commented 1 year ago

same here. any updates?

serjant commented 1 year ago

Same here. Any updates on this one?

sufita commented 5 months ago

Have you tried fixing it by installing this package as well ? @react-native-community/push-notification-ios