-
Notifications
You must be signed in to change notification settings - Fork 115
Support APNs payload extensions for Title & Subtitle
#70
Support APNs payload extensions for Title & Subtitle
#70
Conversation
Add description to SPEC.md below. https://github.com/mercari/gaurun/blob/master/SPEC.md#post-push |
@cubicdaiya Thanks for ur quick check. |
SPEC.md
Outdated
|message |string |message for notification |o | | | | ||
|subtitle |string |subtitle for notification |o | |only iOS | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this optional? ( title, too) if it is optional (not required), the value is not o
but -
in required
row.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes, title and subtitle are optional values.
If they weren't set, only message
will be displayed.
As below, these values are optional.
https://github.com/RobotsAndPencils/buford/blob/1589c179b764ddceb204a439d9bf366f04c55f9b/payload/aps.go#L37
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is optional, update the value with -
in required
row.
@cubicdaiya |
@cubicdaiya |
@timakin Sorry. As we are busy for another project, one moment, please. |
@timakin Merged. Thanks. |
Changes * Support APNs payload extensions for `Title & Subtitle` refs #70 Thanks @timakin * Add UNNotificationCategory option for iOS. refs #73 Thanks @timakin * Support writing pid file refs #76 * bugfix: set Content-Type: application/json; charset=utf-8 for json response. refs #80 * stat: appened charset to Content-Type. refs #81 * api: abolished GET /config/app. refs #82
This PR allows to send
Title
andSubtitle
with an existing payload.From iOS ver10, it supports Bold-styled title and subtitles to display rich notifications.