|
NAMENet::APNS - Apple Push Notification Service for perl. 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;
DESCRIPTIONNet::APNS is Apple Push Notification Service. Push message to iPhone and get unavalble-devicetoken. METHOD
PARAMETERSPUSHPayload 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; AUTHORhaoyayoi <st.hao.yayoi@gmail.com> SEE ALSONet::APNS::Notification LICENSEThis library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
|