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

UNUserNotificationCenter undefined in Appdelegate.m #58

@jeffsteinmetz

Description

@jeffsteinmetz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions