Catalyst::View::APNS - APNS View Class.
# lib/MyApp/View/APNS.pm package MyApp::View::APNS; use base qw/Catalyst::View::APNS/; 1;
# Configure in lib/MyApp.pm MyApp->config( { apns => { certification => cert #require to specify private_key => key #require to specify } } );
sub hello : Local { my ( $self, $c ) = @_; $c->stash->{apns} = { device_token => $device_token, message => $message, badge => $badge, sandbox => 0 | 1 #optional }; $c->forward('MyApp::View::APNS'); }
Use the helper to create your View:
myapp_create.pl view APNS APNS
Catalyst::View::APNS is Catalyst view handler that Apple Push Notification Service.
haoyayoi <st.hao.yayoi@gmail.com>
Net::APNS
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::View::APNS, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::APNS
CPAN shell
perl -MCPAN -e shell install Catalyst::View::APNS
For more information on module installation, please visit the detailed CPAN module installation guide.