0.12.1-alpha.19 • Published 6 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-pluginAdd 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
6 months ago
0.12.1-alpha.18
6 months ago
0.12.1-alpha.17
6 months ago
0.12.1-alpha.15
7 months ago
0.12.1-alpha.12
8 months ago
0.12.1-alpha.11
8 months ago
0.12.1-alpha.10
8 months ago
0.12.1-alpha.9
8 months ago
0.12.1-alpha.7
8 months ago
0.12.1-alpha.6
9 months ago
0.12.1-alpha.5
9 months ago
0.12.1-alpha.4
9 months ago
0.12.1-alpha.3
9 months ago
0.12.1-alpha.2
9 months ago
0.12.1-alpha.1
9 months ago
0.12.1-alpha.0
9 months ago
0.11.14
9 months ago
0.11.13
10 months ago
0.11.12
10 months ago
0.11.11
10 months ago