Skip to content

Commit

Permalink
Add support for alert subtitle
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewBarba committed May 23, 2022
1 parent 176f8ea commit 05e9c0b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

---

## [10.1.0](https://github.com/AndrewBarba/apns2/releases/tag/10.1.0)

1. Add support for alert subtitle

## [10.0.1](https://github.com/AndrewBarba/apns2/releases/tag/10.0.1)

1. Re-written in TypeScript
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "apns2",
"version": "10.0.2",
"version": "10.1.0",
"description": "Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.",
"author": "Andrew Barba <[email protected]>",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/notifications/notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export { PushType, Priority }

export interface NotificationOptions {
type?: PushType
alert?: string | { title: string; body: string }
alert?: string | { title: string; subtitle?: string; body: string }
badge?: number
expiration?: number | Date
sound?: string
Expand Down

0 comments on commit 05e9c0b

Please sign in to comment.