DevicePushSubscription

public struct DevicePushSubscription
extension DevicePushSubscription: Equatable, Hashable

Details of a web-push subscription endpoint.

This struct encapsulates the details of a web-push subscription endpoint, including all the information necessary to send a notification to its owner. Devices attached to the user’s account may register one of these in order to receive timely updates about account-related events.

Managing a web-push subscription is outside of the scope of this component.

  • Declaration

    Swift

    public var endpoint: String
  • Declaration

    Swift

    public var publicKey: String
  • Declaration

    Swift

    public var authKey: String
  • Declaration

    Swift

    public init(endpoint: String, publicKey: String, authKey: String)
  • Declaration

    Swift

    public static func == (lhs: DevicePushSubscription, rhs: DevicePushSubscription) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)