Soshi Tamura > Catalyst-View-APNS > Catalyst::View::APNS

Download:
Catalyst-View-APNS-0.01.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.01   Source  

NAME ^

Catalyst::View::APNS - APNS View Class.

SYNOPSIS ^

# 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

DESCRIPTION ^

Catalyst::View::APNS is Catalyst view handler that Apple Push Notification Service.

AUTHOR ^

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

SEE ALSO ^

Net::APNS

LICENSE ^

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: