Closed russelRajitha closed 1 year ago
@russelRajitha I had the same issue and found the solution in here: https://github.com/react-native-push-notification/ios/issues/388#issuecomment-1387194321
Hope it helps!
I also ran into this issue, just adding <UNUserNotificationCenterDelegate>
like this
#import <RCTAppDelegate.h>
#import <UIKit/UIKit.h>
#import <UserNotifications/UNUserNotificationCenter.h>
@interface AppDelegate : RCTAppDelegate <UNUserNotificationCenterDelegate>
@end
fixed it for me
I also ran into this issue, just adding
<UNUserNotificationCenterDelegate>
like this
#import <RCTAppDelegate.h> #import <UIKit/UIKit.h> #import <UserNotifications/UNUserNotificationCenter.h> @interface AppDelegate : RCTAppDelegate <UNUserNotificationCenterDelegate> @end
fixed it for me
what about AppDelegate.mm changes?
Also having this issue with Android after upgrading to 0.71. Nothing seems to pop up when app is in background. However - no errors, so hard to figure out.
Permissions are all there and I have background/foreground tasks working for other stuff.
@DanielGannage, I have the same problem on android, have you found some solution?
This is now working fine. thanks all for the support
I have installed the latest version of React native and apparently, it has some changes with delegate files that we used to add push notification event handlers. so how to config this library with this latest version?