AnyEvent::APNS

Simple wrapper for Apple Push Notifications Service (APNS) provider
Download

AnyEvent::APNS Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daisuke Murase
  • Publisher web site:
  • http://search.cpan.org/~typester/

AnyEvent::APNS Tags


AnyEvent::APNS Description

Simple wrapper for Apple Push Notifications Service (APNS) provider AnyEvent::APNS is a Perl module that helps you to create Apple Push Notifications Service (APNS) Provider.SYNOPSIS use AnyEvent::APNS; my $cv = AnyEvent->condvar; my $apns; $apns = AnyEvent::APNS->new( certificate => 'your apns certificate file', private_key => 'your apns private key file', sandbox => 1, on_error => sub { # something went wrong }, on_connect => sub { $apns->send( $device_token => { aps => { alert => 'Message received from Bob', }, }); }, ); $apns->connect; # disconnect and exit program as soon as possible after sending a message # otherwise $apns makes persistent connection with apns server $apns->handler->on_drain(sub { undef $_; $cv->send; }); $cv->recv; Requirements: · Perl


AnyEvent::APNS Related Software