ios
ios copied to clipboard
Please Help Me! I have problem on Xcode when trying setting on IOS
I tried to set it up as you instructed but there are some problems, specifically "Use of undeclared identifier 'RNCPushNotificationIOS' "
Check if you have added to the beginning of the file #import <UserNotifications/UserNotifications.h> #import <RNCPushNotificationIOS.h>
Make sure to Install 'yarn add @react-native-community/push-notification-ios'
- $(SRCROOT)/../node_modules/@react-native-community/push-notification-ios/ios works for me
- pods clean
- pasting these two include libraries on top of AppDelegate.mm '#import <RNCPushNotificationIOS.h> #import <UserNotifications/UserNotifications.h>'
My issue has been done by doing this hope you will get help from this.
See https://github.com/react-native-push-notification/ios/issues/150 Moving the imports to lines 2+3 fixed it for me