wix / react-native-notifications

React Native Notifications
MIT License
3.25k stars 765 forks source link

registerRemoteNotificationsRegistered not working on iOS in RN 0.68.x #887

Closed lfrkovic-spaceiq closed 2 years ago

lfrkovic-spaceiq commented 2 years ago

We have a React Native 0.67.4 app in production which works fine on iOS. However, since updating to RN 0.68.2 (and I'm not sure this is the cause of the issue), calling registerRemoteNotificationsRegistered does nothing on iOS. We're not receiving a device token and neither registerRemoteNotificationsRegistrationFailed or registerRemoteNotificationsRegistrationDenied are getting triggered.

Android seems to work fine.

tauntmachine commented 2 years ago

any luck? kindly do share.

lfrkovic-spaceiq commented 2 years ago

I messed up upgrading from RN 0.67.x to 0.68.x

The upgrade removed AppDelegate.m and replaces it with AppDelegate.mm. I forgot to migrate the push notification code from AppDelegate.m