I am trying to set up a push notification system for my application. I have a server and a developer license to set up the push notification service.
I am currently
I use this code snip in AppDelegate.swift:
let pushType = UIUserNotificationType.alert.union(.badge).union(.sound) let pushSettings = UIUserNotificationSettings(types: pushType , categories: nil) application.registerUserNotificationSettings(pushSettings) application.registerForRemoteNotifications()