Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

UNUserNotificationCenter undefined in Appdelegate.m #58

Open
jeffsteinmetz opened this issue Feb 5, 2019 · 0 comments
Open

UNUserNotificationCenter undefined in Appdelegate.m #58

jeffsteinmetz opened this issue Feb 5, 2019 · 0 comments

Comments

@jeffsteinmetz
Copy link
Contributor

The instructions at:
https://resources.count.ly/docs/react-native

suggest addeding:

[[UNUserNotificationCenter currentNotificationCenter] setDelegate:self];

and

-(void) userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void (^)(void))completionHandler {
 [[RNFirebaseMessaging instance] didReceiveRemoteNotification:response.notification.request.content.userInfo];
 completionHandler();
}

This fails the build, UNUserNotificationCenter is an undefined Type.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant