You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/WebPush/WebPushManager.swift
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -501,8 +501,8 @@ public actor WebPushManager: Sendable {
501
501
/// - expiration: The expiration of the push message, after wich delivery will no longer be attempted.
502
502
/// - urgency: The urgency of the delivery of the push message.
503
503
/// - logger: The logger to use for status updates. If not provided, the background activity logger will be used instead. When running in a server environment, your contextual logger should be used instead giving you full control of logging and metadata.
504
-
publicfunc send(
505
-
notification:someEncodable&Sendable,
504
+
publicfunc send<Contents>(
505
+
notification:PushMessage.Notification<Contents>,
506
506
to subscriber:someSubscriberProtocol,
507
507
deduplicationTopic topic:Topic?=nil,
508
508
expiration:Expiration=.recommendedMaximum,
@@ -531,8 +531,8 @@ public actor WebPushManager: Sendable {
531
531
/// - urgency: The urgency of the delivery of the push message.
532
532
/// - logger: The logger to use for status updates. If not provided, the background activity logger will be used instead. When running in a server environment, your contextual logger should be used instead giving you full control of logging and metadata.
0 commit comments