react-native-push-notification/ios

Please Help Me! I have problem on Xcode when trying setting on IOS

hoadesign09 opened this issue · 3 comments

I tried to set it up as you instructed but there are some problems, specifically "Use of undeclared identifier 'RNCPushNotificationIOS' "
Screen Shot 2022-09-15 at 10 49 24

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 #150
Moving the imports to lines 2+3 fixed it for me