From 05e9c0ba507982e879beddd445208e84eb4cc22f Mon Sep 17 00:00:00 2001 From: Andrew Barba Date: Mon, 23 May 2022 11:59:41 -0400 Subject: [PATCH] Add support for alert subtitle --- CHANGELOG.md | 4 ++++ package.json | 2 +- src/notifications/notification.ts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f4e7767..f898b51 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/package.json b/package.json index eb4ebc0..efa7d63 100644 --- a/package.json +++ b/package.json @@ -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 ", "main": "dist/index.js", diff --git a/src/notifications/notification.ts b/src/notifications/notification.ts index c925f0b..a8d6f7b 100644 --- a/src/notifications/notification.ts +++ b/src/notifications/notification.ts @@ -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