GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  NET::APNS (3)

.ds Aq ’

NAME

Net::APNS - Apple Push Notification Service for perl.

CONTENTS

SYNOPSIS



  use Net::APNS;
  my $APNS = Net::APNS->new;
  my $Notifier = $APNS->notify({
      cert   => "cert.pem",
      key    => "key.pem",
      passwd => "pass"
  });
  $Notifier->devicetoken("....");
  $Notifier->message("message");
  $Notifier->badge(4);
  $Notifier->sound(default);
  $Notifier->custom({ custom_key => custom_value });
  $Notifier->write;



DESCRIPTION

Net::APNS is Apple Push Notification Service. Push message to iPhone and get unavalble-devicetoken.

METHOD

notify() Return push client. Need specify parameters.

    PARAMETERS

Cert Server certification file.
Key Server certification key file.
passwd certification password. (option)

    PUSH

Payload contains message, badge and more.



  $APNS->devicetoken($devicetoken);
  $APNS->write({
      sandbox => $sandbox,
      message => $message,
      badge   => $badge,
      sound   => $sound,
      custom  => $custom
  });



or



  $APNS->devicetoken($devicetoken);
  $APNS->sandbox($sandbox);
  $APNS->message($message);
  $APNS->badge($badge);
  $APNS->sound($sound);
  $APNS->custom($custom);
  $APNS->write;



AUTHOR

haoyayoi <st.hao.yayoi@gmail.com>

SEE ALSO

Net::APNS::Notification

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 NET::APNS (3) 2012-02-05

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.