@@ -71,6 +71,8 @@ type alert struct {
71
71
Subtitle string `json:"subtitle,omitempty"`
72
72
TitleLocArgs []string `json:"title-loc-args,omitempty"`
73
73
TitleLocKey string `json:"title-loc-key,omitempty"`
74
+ SubtitleLocArgs []string `json:"subtitle-loc-args,omitempty"`
75
+ SubtitleLocKey string `json:"subtitle-loc-key,omitempty"`
74
76
SummaryArg string `json:"summary-arg,omitempty"`
75
77
SummaryArgCount int `json:"summary-arg-count,omitempty"`
76
78
}
@@ -274,6 +276,28 @@ func (p *Payload) AlertSubtitle(subtitle string) *Payload {
274
276
return p
275
277
}
276
278
279
+ // AlertSubtitleLocKey sets the aps alert subtitle localization key on the payload.
280
+ // This is the key to a subtitle string in the Localizable.strings file for the
281
+ // current localization. See Localized Formatted Strings in Apple documentation
282
+ // for more information.
283
+ //
284
+ // {"aps":{"alert":{"subtitle-loc-key":key}}}
285
+ func (p * Payload ) AlertSubtitleLocKey (key string ) * Payload {
286
+ p .aps ().alert ().SubtitleLocKey = key
287
+ return p
288
+ }
289
+
290
+ // AlertSubtitleLocArgs sets the aps alert subtitle localization args on the payload.
291
+ // These are the variable string values to appear in place of the format
292
+ // specifiers in subtitle-loc-key. See Localized Formatted Strings in Apple
293
+ // documentation for more information.
294
+ //
295
+ // {"aps":{"alert":{"title-loc-args":args}}}
296
+ func (p * Payload ) AlertSubtitleLocArgs (args []string ) * Payload {
297
+ p .aps ().alert ().SubtitleLocArgs = args
298
+ return p
299
+ }
300
+
277
301
// AlertBody sets the aps alert body on the payload.
278
302
// This is the text of the alert message.
279
303
//
0 commit comments