MCPcopy Create free account
hub / github.com/node-apn/node-apn / ProviderOptions

Interface ProviderOptions

index.d.ts:20–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20export interface ProviderOptions {
21 /**
22 * Configuration for Provider Authentication Tokens. (Defaults to: null i.e. fallback to Certificates)
23 */
24 token?: ProviderToken;
25 /**
26 * The filename of the connection certificate to load from disk, or a Buffer/String containing the certificate data. (Defaults to: `cert.pem`)
27 */
28 cert?: string|Buffer;
29 /**
30 * The filename of the connection key to load from disk, or a Buffer/String containing the key data. (Defaults to: `key.pem`)
31 */
32 key?: string|Buffer;
33 /**
34 * An array of trusted certificates. Each element should contain either a filename to load, or a Buffer/String (in PEM format) to be used directly. If this is omitted several well known "root" CAs will be used. - You may need to use this as some environments don't include the CA used by Apple (entrust_2048).
35 */
36 ca?: (string|Buffer)[];
37 /**
38 * File path for private key, certificate and CA certs in PFX or PKCS12 format, or a Buffer containing the PFX data. If supplied will always be used instead of certificate and key above.
39 */
40 pfx?: string|Buffer;
41 /**
42 * The passphrase for the connection key, if required
43 */
44 passphrase?: string;
45 /**
46 * Specifies which environment to connect to: Production (if true) or Sandbox - The hostname will be set automatically. (Defaults to NODE_ENV == "production", i.e. false unless the NODE_ENV environment variable is set accordingly)
47 */
48 production?: boolean;
49 /**
50 * Reject Unauthorized property to be passed through to tls.connect() (Defaults to `true`)
51 */
52 rejectUnauthorized?: boolean;
53 /**
54 * The maximum number of connection failures that will be tolerated before `apn` will "terminate". (Defaults to: 3)
55 */
56 connectionRetryLimit?: number;
57}
58
59interface ApsAlert {
60 body?: string

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…