;
use Encode qw(decode encode encode_utf8);
# NB: Using JSON::XS as not all JSON modules allowed
# by JSON::Any do unicode correctly
use JSON::XS;
__PACKAGE__->mk_accessors(qw(
max_payload_size
command
_json
));
my %defaults = (
host_production => 'gateway.push.apple.com'
,
%{$init_vals}
});
$self->_queue([]);
$self->_json(JSON::XS->new());
$self->_json->utf8(1);
return $self;
}
sub _apply_to_alert_body {
my ($payload, $f
;
use strict;
use warnings;
our $VERSION = '0.02';
use base 'Net::APNS::Persistent::Base';
use JSON::XS;
# ensure we're in byte-oriented mode
use bytes;
my %defaults = (
host_production => 'f