Skip to content

Commit e5c68d5

Browse files
authored
Docs fix (#143)
referring to the docs: https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/generating_a_remote_notification the code is correct putting it into the alert, but the docs are (as often is ^^) wrong
1 parent 142b454 commit e5c68d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payload/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func (p *Payload) AlertTitleLocArgs(args []string) *Payload {
166166
// This will display a short string describing the purpose of the notification.
167167
// Apple Watch & Safari display this string as part of the notification interface.
168168
//
169-
// {"aps":{"subtitle":"subtitle"}}
169+
// {"aps":{"alert":{"subtitle":"subtitle"}}}
170170
func (p *Payload) AlertSubtitle(subtitle string) *Payload {
171171
p.aps().alert().Subtitle = subtitle
172172
return p

0 commit comments

Comments
 (0)