ios icon indicating copy to clipboard operation
ios copied to clipboard

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

Open hoadesign09 opened this issue 2 years ago • 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

hoadesign09 avatar Sep 15 '22 03:09 hoadesign09

Check if you have added to the beginning of the file #import <UserNotifications/UserNotifications.h> #import <RNCPushNotificationIOS.h>

ajlee4 avatar Sep 16 '22 10:09 ajlee4

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.

tekhamzazafar avatar Oct 12 '22 13:10 tekhamzazafar

See https://github.com/react-native-push-notification/ios/issues/150 Moving the imports to lines 2+3 fixed it for me

anton25360 avatar Mar 10 '23 10:03 anton25360