checkMessageSize(notification:)

Check to see if a message is potentially too large to be sent to a push service.

WebPushManager.swift:607
nonisolated func checkMessageSize<Contents>(notification: PushMessage.Notification<Contents>) throws where Contents : Encodable, Contents : Sendable

Parameters

notification

The Notification push notification.

Throws

MessageTooLargeError if the message is too large. Throws another error if encoding fails.