Skip to content

Commit

Permalink
Docs fix (#143)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sideshow committed Aug 11, 2019
1 parent 142b454 commit e5c68d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion payload/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ func (p *Payload) AlertTitleLocArgs(args []string) *Payload {
// This will display a short string describing the purpose of the notification.
// Apple Watch & Safari display this string as part of the notification interface.
//
// {"aps":{"subtitle":"subtitle"}}
// {"aps":{"alert":{"subtitle":"subtitle"}}}
func (p *Payload) AlertSubtitle(subtitle string) *Payload {
p.aps().alert().Subtitle = subtitle
return p
Expand Down

0 comments on commit e5c68d5

Please sign in to comment.