WebPush
import WebPush
Module information
- Declarations
- 293
- Symbols
- 418
import WebPush
protocol HTTPClientProtocol : Sendable
A protocol abstracting HTTP request execution.
protocol SubscriberProtocol : Sendable
Represents a subscriber registration from the browser.
struct BadSubscriberError
The subscription is no longer valid and should be removed and re-registered.
struct Base64URLDecodingError
An error encountered while decoding Base64 data.
struct MessageTooLargeError
The message was too large, and could not be delivered to the push service.
struct PrintLogHandler
A simple log handler that uses formatted print statements.
enum PushMessage
Common Push Message types.
struct PushServiceError
An unknown Push Service error was encountered.
struct Subscriber
A default subscriber implementation that can be used to decode subscriptions encoded by client-side JavaScript directly.
struct Topic
Topics are used to de-duplicate and overwrite messages on push services before they are delivered to a subscriber.
struct UserAgentKeyMaterial
The set of cryptographic secrets shared by the browser (is. user agent) along with a subscription.
struct UserAgentKeyMaterialError
An error encountered during Configuration
initialization or decoding.
enum VAPID
A set of types for Voluntary Application Server Identification, also known as VAPID.
actor WebPushManager
A manager for sending push messages to subscribers.
typealias VoluntaryApplicationServerIdentification = VAPID
The fully qualified name for VAPID.
import WebPushTesting