0.12.1-alpha.19 • Published 5 months ago
@flink-app/apn-plugin v0.12.1-alpha.19
APN Plugin
A FLINK plugin used for sending push notifications using APN (Apple Push Notification) service.
Usage
Install plugin to your flink app project:
npm i -S @flink-app/apn-plugin
Add and configure plugin in your app startup:
import { apnPlugin } from "@flink-app/apn-plugin";
function start() {
new FlinkApp<AppContext>({
name: "My app",
plugins: [
apnPlugin({
token: {
key: "./path/to/AuthKey_XXXXXXXXXX.p8", // Absolute or relative path to your .p8 file
keyId: "XXXXXXXXXX", // Your APNs Auth Key ID
teamId: "YYYYYYYYYY", // Your Apple Developer Team ID
},
production: false, // Set to true if you want to use the production APNs server
}),
],
}).start();
}
Add it to your app context (normally Ctx.ts
in the root folder of your project)
import { ApnPluginContext } from "@flink-app/apn-plugin";
export interface Ctx extends FlinkContext<ApnPluginContext> {
// your context here
}
Configuration
token
- APNs Auth Key configurationkey
- Absolute or relative path to your .p8 filekeyId
- Your APNs Auth Key IDteamId
- Your Apple Developer Team ID
production
- Set to true if you want to use the production APNs server
0.12.1-alpha.19
5 months ago
0.12.1-alpha.18
5 months ago
0.12.1-alpha.17
5 months ago
0.12.1-alpha.15
5 months ago
0.12.1-alpha.12
6 months ago
0.12.1-alpha.11
6 months ago
0.12.1-alpha.10
6 months ago
0.12.1-alpha.9
6 months ago
0.12.1-alpha.7
7 months ago
0.12.1-alpha.6
7 months ago
0.12.1-alpha.5
7 months ago
0.12.1-alpha.4
7 months ago
0.12.1-alpha.3
7 months ago
0.12.1-alpha.2
7 months ago
0.12.1-alpha.1
7 months ago
0.12.1-alpha.0
7 months ago
0.11.14
8 months ago
0.11.13
8 months ago
0.11.12
8 months ago
0.11.11
8 months ago