Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    AnyEvent::APNS 0.07

    Download button

    No screenshots available
    Downloads: 297  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Daisuke Murase | More programs
    Perl Artistic License / FREE
    February 5th, 2012, 18:48 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    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 $_[0];
     $cv->send;
     });
     
     $cv->recv;



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Apple Push Notifications | APNS provider | Perl module | APNS | provider | Perl



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM