apns2
Version:
Node client for connecting to Apple's Push Notification Service using the new HTTP/2 protocol with JSON web tokens.
12 lines (11 loc) • 360 B
JavaScript
import { Notification, Priority, PushType } from "./notification.js";
export class SilentNotification extends Notification {
constructor(deviceToken, options = {}) {
super(deviceToken, {
contentAvailable: true,
type: PushType.background,
priority: Priority.throttled,
...options,
});
}
}