@@ -45,33 +45,17 @@ public struct APNSWidgetsNotification: APNSMessage {
45
45
/// The topic for the notification. In general, the topic is your app’s bundle ID/app ID suffixed with `.push-type.widgets`.
46
46
public var topic : String
47
47
48
- /// The date when the notification is no longer valid and can be discarded. If this value is not `none`,
49
- /// APNs stores the notification and tries to deliver it at least once,
50
- /// repeating the attempt as needed if it is unable to deliver the notification the first time.
51
- /// If the value is `immediately`, APNs treats the notification as if it expires immediately
52
- /// and does not store the notification or attempt to redeliver it.
53
- public var expiration : APNSNotificationExpiration
54
-
55
- /// The priority of the notification.
56
- public var priority : APNSPriority
57
-
58
48
/// Initializes a new ``APNSWidgetsNotification``.
59
49
///
60
50
/// - Parameters:
61
- /// - expiration: The date when the notification is no longer valid and can be discarded.
62
- /// - priority: The priority of the notification.
63
51
/// - appID: Your app’s bundle ID/app ID. This will be suffixed with `.push-type.widgets`.
64
52
/// - apnsID: A canonical UUID that identifies the notification.
65
53
@inlinable
66
54
public init (
67
- expiration: APNSNotificationExpiration ,
68
- priority: APNSPriority ,
69
55
appID: String ,
70
56
apnsID: UUID ? = nil
71
57
) {
72
58
self . init (
73
- expiration: expiration,
74
- priority: priority,
75
59
topic: appID + " .push-type.widgets " ,
76
60
apnsID: apnsID
77
61
)
@@ -80,19 +64,13 @@ public struct APNSWidgetsNotification: APNSMessage {
80
64
/// Initializes a new ``APNSWidgetsNotification``.
81
65
///
82
66
/// - Parameters:
83
- /// - expiration: The date when the notification is no longer valid and can be discarded.
84
- /// - priority: The priority of the notification.
85
67
/// - topic: The topic for the notification. In general, the topic is your app’s bundle ID/app ID suffixed with `.push-type.widgets`.
86
68
/// - apnsID: A canonical UUID that identifies the notification.
87
69
@inlinable
88
70
public init (
89
- expiration: APNSNotificationExpiration ,
90
- priority: APNSPriority ,
91
71
topic: String ,
92
72
apnsID: UUID ? = nil
93
73
) {
94
- self . expiration = expiration
95
- self . priority = priority
96
74
self . topic = topic
97
75
self . apnsID = apnsID
98
76
}
0 commit comments