Top "Unusernotificationcenter" questions

Manages the notification-related activities for your app or app extension.

Registering for Push Notifications in Xcode 8/Swift 3.0?

I'm trying to get my app working in Xcode 8.0, and am running into an error. I know this code worked …

ios push-notification swift3 ios10 unusernotificationcenter
Getting local notifications to show while app is in foreground Swift 3

Apparently this is now possible with ios10 : optional func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: (UNNotificationPresentationOptions) -> …

ios swift swift3 uilocalnotification unusernotificationcenter
Add Local Notification in iOS 10 - Swift 3

So I been trying to add a notification to the new UNUserNotificationCenter, but I don't seem to get it. My …

swift swift3 uilocalnotification ios10 unusernotificationcenter
UIApplication.registerForRemoteNotifications() must be called from main thread only

Xcode 9 (iOS 11) showing me an error/warning while registering for Push (remote) notification. Here is error message And here is …

ios swift push-notification swift4 unusernotificationcenter
How to enable/disable push notification from the app?

In my app I want to enable/disable push notification from the settings page of my app itself.Can any …

ios xcode push-notification unusernotificationcenter remote-notifications
Enable or Disable Iphone Push Notifications inside the app

I have a iphone app which is enable to receive push notifications. Currently i can disable push notifications for my …

ios swift push-notification unusernotificationcenter usernotifications
iOS 10 UserNotifications custom sound in background mode

Since UILocalNotification is deprecated in iOS 10 so I have updated my local notification flow using the UNUserNotification framework. The app …

swift ios10 uilocalnotification unusernotificationcenter
iOS 10 How to view a list of pending notifications using UNUserNotificationCenter?

Solution Code: let center = UNUserNotificationCenter.current() print(center.getPendingNotificationRequests(completionHandler: { error in // error handling here })) My original post: I am …

ios swift3 ios10 unusernotificationcenter
Register push notification Swift 3 + iOS 10

I'm trying to implement rich push notification but having issue with register push notification. Anybody help me?

apple-push-notifications swift3 ios10 xcode8 unusernotificationcenter
UNUserNotificationCenter link error

I have an Xcode project, Xcode 8.1 (8B62) with two targets, one for the paid version of the application and the …

ios xcode ios10 unusernotificationcenter