AUNotificationPermissions
public class AUNotificationPermissions
-
allowed
AsynchronousCheck if notifications are allowed
Declaration
Swift
public static var allowed: Bool { get async }
-
status
AsynchronousCheck the notification permission status
Declaration
Swift
public static var status: UNAuthorizationStatus { get async }
-
request(_:
Asynchronous) Request notification permissions
Declaration
Swift
@discardableResult public static func request(_ options: UNAuthorizationOptions? = nil) async throws -> Bool
Parameters
options
Requested notification options
-
registerForRemoteNotifications()
AsynchronousRegister device with APNs
Declaration
Swift
public static func registerForRemoteNotifications() async