Open JosephVasse opened 2 years ago
try with ` // Define UNUserNotificationCenter
UNUserNotificationCenter center = [UNUserNotificationCenter currentNotificationCenter]; [center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound + UNAuthorizationOptionBadge)completionHandler:^(BOOL granted, NSError _Nullable error) { if (granted) { center.delegate = self; } }];`
try with ` // Define UNUserNotificationCenter
UNUserNotificationCenter center = [UNUserNotificationCenter currentNotificationCenter]; [center requestAuthorizationWithOptions:(UNAuthorizationOptionAlert + UNAuthorizationOptionSound + UNAuthorizationOptionBadge)completionHandler:^(BOOL granted, NSError _Nullable error) { if (granted) { center.delegate = self; } }];`
Didn't work ☹️
So? Any news? I guess it's only the example code that is off, but I have no clue whatsoever about native iOS stuff
any solution yet?
I've been trying to setup notifications on an IOS app for several days and I'm facing many issues.
One that i cannot figure out how it happens is the following :
In appDelegate.m :
(Link to the screenshot : )https://i.stack.imgur.com/01Fp3.png Error :
No known class method for selector 'didReceiveNotificationResponse:'
I followed the installation directions but doesn't work for me ...
Thanks in advance