AUNotificationPermissions

public class AUNotificationPermissions
  • allowed Asynchronous

    Check if notifications are allowed

    Declaration

    Swift

    public static var allowed: Bool { get async }
  • status Asynchronous

    Check 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

  • Register device with APNs

    Declaration

    Swift

    public static func registerForRemoteNotifications() async