
Send apns messages with \%payload to device specified $device_token. Optional (Default: ignore) $apns->connect Ĭonnect to apns server. Optional (Default: empty coderef) on_error_response => $cb->($identifier, $status)Ĭallback to be called when APNs detects notification malformed or otherwise unintelligible. read AnyEvent::Handle for more detail) on_connect => $cb->()Ĭallback to be called when connection established to apns server.

Optional (Default: just warn error) on_eof => $cb->($handle)Ĭallback to be called when an end-of-file condition is detected. can enable the For APNS Sandbox checkbox to leverage the sandbox APNs environment. This is wrapper for AnyEvent::Handle's on_error callbacks. After the Apple Push Services Certificate is generated, download and. Optional (Default: 0) on_error => $cb->($handle, $fatal, $message)Ĭallback to be called when something error occurs.

Afterwards, I found that the URL .com is not. This is a flag indicate target service is provisioning (sandbox => 1) or distribution (sandbox => 0) I used the apple-push-notifications application id to add a new firewall rule. Either file path for private_key or scalar-ref of private-key data. private_key => 'Str | ScalarRef' private_key => '/path/to/private_key', Either file path for certificate or scalar-ref of certificate data. Supported arguments are: certificate => 'Str | ScalarRef' certificate => '/path/to/certificate_file', Private_key => 'your apns private key file', $apns->send( $device_token, \%payload )ĪnyEvent::APNS - Simple wrapper for Apple Push Notifications Service (APNS) provider SYNOPSIS use AnyEvent::APNS Ĭertificate => 'your apns certificate file',.
