Constructor
new APNClient(options, key, sandboxopt)
- Source:
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
options |
object | ||
key |
string | Authentication Token key, file.p8 or base64 key data |
|
options.teamId |
string | ID of the team associated with the provider token key |
|
options.keyId |
string | The ID of the key issued by Apple |
|
sandbox |
boolean |
<optional> |
true if in sandbox mode |
Methods
send(device, options, callbackopt)
- Description:
Send push notification to an Apple device, returns true if the message has been queued.
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
device |
object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
options |
object |
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
callback |
function |
<optional> |