Posts

Post not yet marked as solved
1 Replies
1.3k Views
Hi there, since iOS 14 I have the problem that when I try to request the authorization for push notifications I instant get an error message which says "Notifications are not allowed for this application". On older iOS versions everything is working fine but since iOS 14 there is something wrong. Have you any idea? In my app delegate i run the following code: let center = UNUserNotificationCenter.current()         center.requestAuthorization(options: [.alert, .sound, .badge]) { granted, error in if granted { UIApplication.shared.registerForRemoteNotifications() } if let error = error { printLogs(error, logLevel: .ERROR) return } } When running this code i instant get an error in the completion without displaying any alert to the user
Posted
by SabinaBra.
Last updated
.