Can't configure push notifications on iOS React Native

Hey everyone,

Trying to follow this guide.

Pasted this code in appDelegate.m
- (void)applicationDidBecomeActive:(UIApplication *)application {
[application registerUserNotificationSettings:
[UNNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge | UIUserNotificationTypeSound | UIUserNotificationTypeAlert)
categories:nil]];
[application registerForRemoteNotifications];
}

Getting this error: No known class method for selector ‘settingsForTypes:categories:’

Sorry I’m a complete noob in Objective-C

Thanks for all the helpers!

Hey there :wave:

Wanted to follow up with this issue. To clarify, we don’t have an official React Native SDK. Though there is a popular 3rd party one created by Tiny Creative. Are you using their SDK by any chance?