gmiaty / apns-php Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/apns-php
Automatically exported from code.google.com/p/apns-php
What steps will reproduce the problem?
1. Add 10 messages $apns->add($msg), where 1 (in the middle) will be with
invalid token.
2. Send them $apns->send();
What is the expected output? What do you see instead?
Send 9 push messages successfully.
Instead, it sends only the messages before the bad token. And the others fail.
What version of the product are you using? On what operating system?
newest revision (78) of apns-php on debian.
Please provide any additional information below.
I don't really know if that's an issue, or i am doing something wrong, but it
seems like it's an issue. When i do $apns->send(); after each message, it sends
all 9 messages and reconnects automatically. But when i try to send multiple
messages from 1 queue at once, it doesn't seem to reconnect ... And it's really
A LOT faster when sending approximately 3000 push notifications to do send
after adding all of them instead of doing send after each. When i do send after
each, it takes almost an hour to send all of them... I also attached a file
with logs.
Original issue reported on code.google.com by [email protected]
on 25 Dec 2010 at 11:25
Attachments:
Hi, i'm using apns-php in a cron job, and i receive an email each time the cron
job gets executed. I want to receive emails, if there's something wrong or so,
so i don't want to turn the logging off completely, and i also don't wanna
'2>&1 > /dev/null' it. It would be perfect if im able to set something like
$apns->loggerType = LOGGER_ERRORS_ONLY; or something like that ... i would take
minutes to do such feature, and i will really appreciate it. and sorry i
reported it as an error, but i don't see other place to write :)
Original issue reported on code.google.com by [email protected]
on 30 Dec 2010 at 7:32
My app is already running, and now I wanted to start developing a feature that
will remove bad device tokens using the Feedback mechanism.
So my first test was to copy the code sample and run it, it displayed some
data. I went back to my code to make it more readable, clicked refresh and ...
there is no more data.
Could it be that once Apple sends me the data, it deletes it from their
server?? Is this read-once data?
That would make it hard to develop and test...
Any tips?
Original issue reported on code.google.com by [email protected]
on 28 Jul 2011 at 8:37
Patched
Original issue reported on code.google.com by [email protected]
on 2 Oct 2012 at 11:24
Attachments:
Hello
I'm trying to use apnsphp .I've implemented my push code from the example of
APNSPHP push sample.
However when I try to send a push notification message it says unable to
connect ssl://gateway.sandbox.push.apple.com:2195 .
I've checked via telnet and my server is able to connect to above address.
What may be the problem?
Wed, 04 Jul 2012 10:50:31 +0300 ApnsPHP[2691]: INFO: Trying
ssl://gateway.sandbox.push.apple.com:2195... Wed, 04 Jul 2012 10:50:31 +0300
ApnsPHP[2691]: ERROR: Unable to connect to
'ssl://gateway.sandbox.push.apple.com:2195': php_network_getaddresses:
getaddrinfo failed: Name or service not known (0) Wed, 04 Jul 2012 10:50:31
+0300 ApnsPHP[2691]: INFO: Retry to connect (1/3)... Wed, 04 Jul 2012 10:50:32
+0300 ApnsPHP[2691]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 04 Jul 2012 10:50:32 +0300 ApnsPHP[2691]: ERROR: Unable to connect to
'ssl://gateway.sandbox.push.apple.com:2195': php_network_getaddresses:
getaddrinfo failed: Name or service not known (0) Wed, 04 Jul 2012 10:50:32
+0300 ApnsPHP[2691]: INFO: Retry to connect (2/3)... Wed, 04 Jul 2012 10:50:33
+0300 ApnsPHP[2691]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 04 Jul 2012 10:50:33 +0300 ApnsPHP[2691]: ERROR: Unable to connect to
'ssl://gateway.sandbox.push.apple.com:2195': php_network_getaddresses:
getaddrinfo failed: Name or service not known (0) Wed, 04 Jul 2012 10:50:33
+0300 ApnsPHP[2691]: INFO: Retry to connect (3/3)... Wed, 04 Jul 2012 10:50:34
+0300 ApnsPHP[2691]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to
connect to 'ssl://gateway.sandbox.push.apple.com:2195':
php_network_getaddresses: getaddrinfo failed: Name or service not known (0)' in
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/ApnsPHP/Abstract.php:35
2 Stack trace: #0
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/ApnsPHP/Abstract.php(29
5): ApnsPHP_Abstract->_connect() #1
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/pushNotification.php(55
): ApnsPHP_Abstract->connect() #2 {main} thrown in
/opt/lampp/htdocs/NoteMee/NoteMeeServer/PushNotification/ApnsPHP/Abstract.php
on line 352
Original issue reported on code.google.com by [email protected]
on 4 Jul 2012 at 7:54
Im trying to send a notification with your library to this device token:
11090dfbcc90be26621f4b45e853c2a84c52eb22c0985981099afc62f1a1bff9
But I get the Error "Invalid Token".
Any advice?
Thank you,
Julian
Original issue reported on code.google.com by [email protected]
on 1 Dec 2010 at 2:23
What steps will reproduce the problem?
1.Push Notifications
2.All Certificates there
3.
It was working Yesterday,but now its not working.
ubuntu 12.04
Original issue reported on code.google.com by [email protected]
on 8 Sep 2014 at 8:05
I do not want to display ApnsPHP[11445]: INFO for sending notification
Any Idea ??
Original issue reported on code.google.com by [email protected]
on 30 Dec 2014 at 7:22
What steps will reproduce the problem?
Hello
I'm trying to use apnsphp .I've implemented my push code from the example of
APNSPHP push sample.
However when I try to send a push notification message it says unable to
connect ssl://gateway.sandbox.push.apple.com:2195 .
What is the expected output? What do you see instead?
Wed, 05 Dec 2012 01:26:34 +0530 ApnsPHP[31164]: INFO: Trying
ssl://gateway.sandbox.push.apple.com:2195... Wed, 05 Dec 2012 01:26:35 +0530
ApnsPHP[31164]: ERROR: Unable to connect to
'ssl://gateway.sandbox.push.apple.com:2195': (0) Wed, 05 Dec 2012 01:26:35
+0530 ApnsPHP[31164]: INFO: Retry to connect (1/3)... Wed, 05 Dec 2012 01:26:36
+0530 ApnsPHP[31164]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 05 Dec 2012 01:26:36 +0530 ApnsPHP[31164]: ERROR: Unable to connect to
'ssl://gateway.sandbox.push.apple.com:2195': (0) Wed, 05 Dec 2012 01:26:36
+0530 ApnsPHP[31164]: INFO: Retry to connect (2/3)... Wed, 05 Dec 2012 01:26:37
+0530 ApnsPHP[31164]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
Wed, 05 Dec 2012 01:26:37 +0530 ApnsPHP[31164]: ERROR: Unable to connect to
'ssl://gateway.sandbox.push.apple.com:2195': (0) Wed, 05 Dec 2012 01:26:37
+0530 ApnsPHP[31164]: INFO: Retry to connect (3/3)... Wed, 05 Dec 2012 01:26:38
+0530 ApnsPHP[31164]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195...
What version of the product are you using? On what operating system?
the product version: apnsPHP-r100,
operating system: windows 7
Please provide any additional information below.
i am using code
require_once 'ApnsPHP/Autoload.php';
$push = new ApnsPHP_Push(ApnsPHP_Abstract::ENVIRONMENT_SANDBOX,
'pIpeMediaPNSSLCertificateSigningRequest.certSigningRequest');
$push->connect();
$message = new ApnsPHP_Message(str_replace(' ', '',
'753497da89e12eec87ae21add4c2e461b80319630515384a2525262d5331c40d'));
$message->setText('push via ApnsPHP');
$message->setSound();
$message->setBadge(1);
$message->setCustomProperty('deviceToken',
'753497da89e12eec87ae21add4c2e461b80319630515384a2525262d5331c40d');
$message->setCustomIdentifier('753497da89e12eec87ae21add4c2e461b80319630515384a2
525262d5331c40d');
$message->setExpiry(30);
$push->add($message);
$push->send();
$push->disconnect();
$errors = $push->getErrors();
Original issue reported on code.google.com by [email protected]
on 4 Dec 2012 at 2:43
When I start my apns_server,During the first few hours, send and receive are
all right,
After over eight hours, phone can't receive the notification, there is the log:
Fri, 10 Feb 2012 09:04:04 +0800 ApnsPHP[8372]: INFO: Process 2 has 1 messages,
sending...
Fri, 10 Feb 2012 09:04:04 +0800 ApnsPHP[8372]: INFO: Sending messages queue,
run #1: 1 message(s) left in queue.
Fri, 10 Feb 2012 09:04:04 +0800 ApnsPHP[8372]: STATUS: Sending message ID 1
[custom identifier: unset] (1/3): 83 bytes.
when I restart the apns_server , and add new notification, i can receive it;
Please suggest How to fix it
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 10 Feb 2012 at 2:27
Hi
What steps will reproduce the problem?
1. I have a developer certificate for my app.
2. I have 6 device tokens which installed my application.
3. I am trying to send notification them a notification.
4.We have a problem while trying to send notifications to phones. Only 4 of 6
notifications was delivered. Another phones didn't receive it. Also the server
had displaied a delivey error message: 'ERROR: Unable to send message ID 1:
Invalid token (8)'
These 2 tokens are always constant
Notofications didn't go to 2 certain phones .
What i'm must to do?
Thank you.
Original issue reported on code.google.com by [email protected]
on 31 Mar 2012 at 8:46
What steps will reproduce the problem?
When I send notification from my server, it works in developer version but when
I send in distribution(Ad hoc) mode, I never received it on iPhone with
following response on my server.
Mon, 29 Nov 2010 13:04:37 +0530 ApnsPHP[6474]: INFO: Trying
ssl://gateway.push.apple.com:2195...
Mon, 29 Nov 2010 13:04:37 +0530 ApnsPHP[6474]: INFO: Connected to
ssl://gateway.push.apple.com:2195.
Mon, 29 Nov 2010 13:04:37 +0530 ApnsPHP[6474]: INFO: Sending messages queue,
run #1: 1 message(s) left in queue.
Mon, 29 Nov 2010 13:04:37 +0530 ApnsPHP[6474]: STATUS: Sending message ID 1
[custom identifier: Message-Badge130437]: 128 bytes.
Mon, 29 Nov 2010 13:04:37 +0530 ApnsPHP[6474]: INFO: Disconnected.
Please suggest How to fix it.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Original issue reported on code.google.com by amit.fbd
on 29 Nov 2010 at 7:44
the final PEM file needs to be readable by the webserver and for that chmod 400
is necessary. This instruction was missing in the wiki. As a result my APNS was
not working. After doing a chmod 400 on the PEM file, my APNS started working.
Hence, Including this instruction in the wiki.
Original issue reported on code.google.com by [email protected]
on 28 Aug 2012 at 2:47
Attachments:
What steps will reproduce the problem?
1.pushing a message in another language
3.UTF-8 encoding applies
What is the expected output? What do you see instead?
you get badly encoded messages
Original issue reported on code.google.com by [email protected]
on 16 Jun 2011 at 9:55
What steps will reproduce the problem?
1. put a long UTF-8 encoded string in a payload, for example, in
$message->setText()
What is the expected output? What do you see instead?
Expected Results:
apns-php should be able to send it regardless of how big the string is, as long
as it's UTF-8 encoded. If it's very long, it should be truncated
(auto-adjusted) before it gets sent.
Current Results:
Fatal error: Uncaught exception 'ApnsPHP_Message_Exception' with message 'JSON
Payload is too long: <n> bytes. Maximum size is <max> bytes. The message text
can not be auto-adjusted.
What version of the product are you using? On what operating system?
r104
Please provide any additional information below.
By default, json_encode escapes UTF-8 encoded string to "\uxxxx". This is fine,
however, it makes the string very big. Apple's servers accept both formats,
escaped and unescaped UTF-8 strings.
For PHP < 5.4 there's no easy option as including JSON_UNESCAPED_UNICODE.
Therefore, I have included a patch which should solve this issue.
Original issue reported on code.google.com by [email protected]
on 23 Feb 2012 at 7:28
Attachments:
What steps will reproduce the problem?
1. Use production certificates
2. Try to use sample_push.php
What is the expected output? What do you see instead?
ERROR: Unable to connect to 'ssl://gateway.push.apple.com:2195': (0)
What version of the product are you using? On what operating system?
r060
Mac OS X
Apache
PHP 5.3.3
Please provide any additional information below.
Sandbox requests works just fine.
Original issue reported on code.google.com by [email protected]
on 6 Dec 2010 at 10:59
What steps will reproduce the problem?
1.when i send message
"一二三四五六七八九十一二三四五六七八九十一二三四五六�
��八"
2.i got
"一二三四五六七八九十一二三四五六七八九十一二三四五六�
��"
3.
What is the expected output? What do you see instead?
“一二三四五六七八九十一二三四五六七八九十一二三四五��
�”
Please provide any additional information below.
ApnsPHP line 353 - 361
$this->_sText = substr($this->_sText, 0, $nTextLen - ($nJSONPayloadLen -
self::PAYLOAD_MAXIMUM_SIZE));
Original issue reported on code.google.com by [email protected]
on 2 Sep 2011 at 8:49
If you integrate apns-php into an application that already has its own
__autoload defined, it won't work. I've patched the Autoload.php file to use
spl_autoload_register if available, so that it doesn't conflict with existing
autoloaders.
If spl_autoload_register is not available, it falls back to the old behaviour
by default.
See attachment.
Original issue reported on code.google.com by [email protected]
on 23 Nov 2010 at 4:06
Attachments:
I send a message with latin character, but the notification don't show, i can
listen the notification sound.
$message->setText('Nova Publicação!');
How i can send message with latin character?
Thanks.
Original issue reported on code.google.com by [email protected]
on 27 Sep 2012 at 4:20
Please provide any additional information below.
To push notifications is Peer verification mandatory?
what is the use of peer verification?
Original issue reported on code.google.com by [email protected]
on 6 Jul 2011 at 11:11
I'm using apns-php <http://code.google.com/p/apns-php/> to send notifications
and somewhere in the middle it encounters an internal error(999) while sending
the message objects.
Right after the internal error(999), apns-php treats the remaining tokens as
Invalid tokens(8). The internal error occurs before reaching the last message
object.
Here is the first Internal error object encountered
<pre>
/*****************
[304]=>
array(3) {
["MESSAGE"]=>
object(ApnsPHP_Message)#306 (9) {
["_notification_delivery_id"]=>
int(-1)
["_bAutoAdjustLongPayload":protected]=>
bool(true)
["_aDeviceTokens":protected]=>
array(1) {
[0]=>
string(64) "XXX_HIDDEN_FOR_SECUIRITY_XXX"
}
["_sText":protected]=>
NULL
["_nBadge":protected]=>
int(304)
["_sSound":protected]=>
NULL
["_aCustomProperties":protected]=>
NULL
["_nExpiryValue":protected]=>
int(604800)
["_mCustomIdentifier":protected]=>
string(17) "Message-Badge-304"
}
["BINARY_NOTIFICATION"]=>
string(66) "��BINARY_NOTFICATION"aps":{"badge":304}}"
["ERRORS"]=>
array(2) {
[0]=>
array(3) {
["identifier"]=>
int(304)
["statusCode"]=>
int(999)
["statusMessage"]=>
string(52) "Internal error (0 bytes written instead of 66 bytes)"
}
[1]=>
array(5) {
["command"]=>
int(8)
["statusCode"]=>
int(8)
["identifier"]=>
int(304)
["time"]=>
int(1346235506)
["statusMessage"]=>
string(13) "Invalid token"
}
}
}
/**********
</pre>
After this error message, all the remaining tokens are printed as invalid
token with code 8.
I'm trying to send at least 400 notifications using the sample_push_many.php
template, and the number of device token will surely grow once my service is
published to production mode.
Is it normal so send 400 or greater notification with the sample_push_many.php
template? Could this be related to memory leak on the server?
Server Info:
Operating system Linux
Architecture x86_64
PHP version 5.3.4
Any idea how i can over come this issue?
Original issue reported on code.google.com by [email protected]
on 29 Aug 2012 at 5:24
fdnbgfnmj
Original issue reported on code.google.com by [email protected]
on 20 Jul 2012 at 8:48
Attachments:
Why does the code forbid setting a badge number to zero? I thought a zero was
not only valid, but was the method for clearing a badge.
[...]
if (isset($this->_nBadge) && $this->_nBadge > 0) {
$aPayload[self::APPLE_RESERVED_NAMESPACE]['badge'] = (int)$this->_nBadge;
}
[...]
Original issue reported on code.google.com by [email protected]
on 17 Mar 2012 at 7:32
What steps will reproduce the problem?
1.Set the root certificate as explained in the website documentation
2.Push data
What is the expected output? What do you see instead?
The push failed because of the SSL error
What version of the product are you using? On what operating system?
The PHP 100 on Ubuntu
Please provide any additional information below.
I found the solution of the defect.
It seems that your documentation part "Verify peer using Entrust Root
Certification Authority" is outdated.
Check out this post: http://davidwalsh.name/php-ssl-curl-error it solved the
issue.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2012 at 10:40
What steps will reproduce the problem?
1. ApnsPHP_Message->setCustomProperty only accepts the last value set
What is the expected output? What do you see instead?
Each call to setCustomProperty will add an additional property to the payload
What version of the product are you using? On what operating system?
r60
Original issue reported on code.google.com by [email protected]
on 20 Oct 2010 at 2:58
Any way to remove shared memory usage or add another work mode?
With so many host service this feature is not available :(
Original issue reported on code.google.com by [email protected]
on 22 Aug 2012 at 7:39
Using the sample code in sample_server.php, I am able to connect to APNS/send
out notifications just fine. However, how might I go about implementing this
code into a script that runs on a scheduled basis, then disconnects when it's
finished sending out alerts? As the sample code stands, it forks the server,
but then the script never seems to terminate (when running from the command
line). Thanks in advance for your help; this is a great project!
Original issue reported on code.google.com by [email protected]
on 24 Aug 2010 at 9:10
What steps will reproduce the problem?
I use the code seen below to create a server. If I run this in a browser, the
page constantly loads and doesn't ever seem to end, even though the
notifications have been sent and received.
Any idea why the server just keeps running? I assume this isn't normal. And,
no, the line "if ($i <= count($notifications)) {" isn't causing an infinite
loop, I checked. Thanks!
My code assuming $notifications is declared as a variable:
// Adjust to your timezone
date_default_timezone_set('America/New_York');
// Report all PHP errors
error_reporting(-1);
// Using Autoload all classes are loaded on-demand
require_once 'ApnsPHP/Autoload.php';
// Instanciate a new ApnsPHP_Push object
$server = new ApnsPHP_Push_Server(
ApnsPHP_Abstract::ENVIRONMENT_SANDBOX,
'server_certificates_bundle_sandbox.pem'
);
// Set the Root Certificate Autority to verify the Apple remote peer
$server->setRootCertificationAuthority('entrust_2048_ca.pem');
// Set the number of concurrent processes
$server->setProcesses(3);
// Starts the server forking the new processes
$server->start();
// Main loop...
$i = 1;
while ($server->run()) {
// Check the error queue
$aErrorQueue = $server->getErrors();
if (!empty($aErrorQueue)) {
// Do somethings with this error messages...
var_dump($aErrorQueue);
}
// Send 10 messages
if ($i <= count($notifications)) {
// Instantiate a new Message with a single recipient
$message = new ApnsPHP_Message($notifications[$i-1]['device']);
// Set badge icon to "i"
$message->setBadge(intval($notifications[$i-1]['badge']));
$message->setText($notifications[$i-1]['message'].$i);
// Add the message to the message queue
$server->add($message);
$i++;
}
// Sleep a little...
usleep(200000);
}
Original issue reported on code.google.com by [email protected]
on 16 Apr 2012 at 4:03
PHP is unable to connect when I request peer verification. Unfortunately it
fails with error code 0 and no error message. This is not working on a Debian
Lenny box with PHP 5.3.3 compiled from scratch but does work on my Mac with PHP
5.3.1 (default install)
As no error code or message is given I'm at a loss to debug this one.
What steps will reproduce the problem?
1. Using the sample_push or sample_server code, make a call to
setRootCertificationAuthority
What version of the product are you using? On what operating system?
r50 (current release), Debian Lenny
Please provide any additional information below.
Connects (and sends notifications) fine without peer verification.
Original issue reported on code.google.com by [email protected]
on 3 Aug 2010 at 5:40
when I change my enviroment to PRODUCTION,i got error " Invalid token", but it
works in sandbox enviroment?does anybody know the reason?
I am sure i used server_certificates_bundle_production.pem, not sandbox.
---------------------------------------------------------------
Thu, 27 Oct 2011 04:16:21 +0000 ApnsPHP[3904]: INFO: Trying
ssl://gateway.push.apple.com:2195... Thu, 27 Oct 2011 04:16:21 +0000
ApnsPHP[3904]: INFO: Connected to ssl://gateway.push.apple.com:2195. Thu, 27
Oct 2011 04:16:21 +0000 ApnsPHP[3904]: INFO: Sending messages queue, run #1: 1
message(s) left in queue. Thu, 27 Oct 2011 04:16:21 +0000 ApnsPHP[3904]:
STATUS: Sending message ID 1 [custom identifier: unset] (1/3): 177 bytes. Thu,
27 Oct 2011 04:16:22 +0000 ApnsPHP[3904]: ERROR: Unable to send message ID 1:
Invalid token (8). Thu, 27 Oct 2011 04:16:22 +0000 ApnsPHP[3904]: INFO:
Disconnected. Thu, 27 Oct 2011 04:16:22 +0000 ApnsPHP[3904]: INFO: Trying
ssl://gateway.push.apple.com:2195... Thu, 27 Oct 2011 04:16:23 +0000
ApnsPHP[3904]: INFO: Connected to ssl://gateway.push.apple.com:2195. Thu, 27
Oct 2011 04:16:23 +0000 ApnsPHP[3904]: INFO: Sending messages queue, run #2: 1
message(s) left in queue. Thu, 27 Oct 2011 04:16:23 +0000 ApnsPHP[3904]:
WARNING: Message ID 1 [custom identifier: unset] has an unrecoverable error
(8), removing from queue without retrying... Thu, 27 Oct 2011 04:16:24 +0000
ApnsPHP[3904]: INFO: Disconnected.
-------------------------------------------------------------
Original issue reported on code.google.com by [email protected]
on 27 Oct 2011 at 4:46
apns-php sends notifications successfully and somewhere in the middle it
encounters an internal error(999). Right after the internal error, apns-php
treats the remaining tokens as Invalid tokens(8). And I have made sure that the
tokens that are claimed invalid are random, it rejects the tokens as invalid
randomly. In fact i have noticed that the tokens who are claimed to be invalid
will be accepted as a valid one when making another request.
Here is the log
INFO: Sending messages queue, run #10: 12 message(s) left in queue.
STATUS: Sending message ID 406 [custom identifier: Message-Badge-4173] (2/3):
198 bytes.
STATUS: Sending message ID 407 [custom identifier: Message-Badge-4174] (1/3):
198 bytes.
STATUS: Sending message ID 408 [custom identifier: Message-Badge-4175] (1/3):
198 bytes.
STATUS: Sending message ID 409 [custom identifier: Message-Badge-4176] (1/3):
198 bytes.
STATUS: Sending message ID 410 [custom identifier: Message-Badge-4177] (1/3):
198 bytes.
STATUS: Sending message ID 411 [custom identifier: Message-Badge-4178] (1/3):
198 bytes.
STATUS: Sending message ID 412 [custom identifier: Message-Badge-4179] (1/3):
198 bytes.
STATUS: Sending message ID 413 [custom identifier: Message-Badge-4180] (1/3):
198 bytes.
STATUS: Sending message ID 414 [custom identifier: Message-Badge-4181] (1/3):
198 bytes.
STATUS: Sending message ID 415 [custom identifier: Message-Badge-4182] (1/3):
198 bytes.
STATUS: Sending message ID 416 [custom identifier: Message-Badge-4183] (1/3):
198 bytes.
STATUS: Sending message ID 417 [custom identifier: Message-Badge-4184] (1/3):
198 bytes.
ERROR: Unable to send message ID 406:Invalid token(8).
INFO: Sending messages queue, run #11: 12 message(s) left in queue.
WARNING: Message ID 406 [custom identifier: Message-Badge-4173] has an
unrecoverable error (8), removing from queue without retrying...
STATUS: Sending message ID 407 [custom identifier: Message-Badge-4174] (1/3):
198 bytes.
STATUS: Sending message ID 408 [custom identifier: Message-Badge-4175] (1/3):
198 bytes.
STATUS: Sending message ID 409 [custom identifier: Message-Badge-4176] (1/3):
198 bytes.
STATUS: Sending message ID 410 [custom identifier: Message-Badge-4177] (1/3):
198 bytes.
STATUS: Sending message ID 411 [custom identifier: Message-Badge-4178] (1/3):
198 bytes.
STATUS: Sending message ID 412 [custom identifier: Message-Badge-4179] (1/3):
198 bytes.
STATUS: Sending message ID 413 [custom identifier: Message-Badge-4180] (1/3):
198 bytes.
STATUS: Sending message ID 414 [custom identifier: Message-Badge-4181] (1/3):
198 bytes.
STATUS: Sending message ID 415 [custom identifier: Message-Badge-4182] (1/3):
198 bytes.
STATUS: Sending message ID 416 [custom identifier: Message-Badge-4183] (1/3):
198 bytes.
STATUS: Sending message ID 417 [custom identifier: Message-Badge-4184] (1/3):
198 bytes.
ERROR: Unable to send message ID 407:Invalid token(8).
INFO: Sending messages queue, run #12: 11 message(s) left in queue.
WARNING: Message ID 407 [custom identifier: Message-Badge-4174] has an
unrecoverable error (8), removing from queue without retrying...
STATUS: Sending message ID 408 [custom identifier: Message-Badge-4175] (1/3):
198 bytes.
STATUS: Sending message ID 409 [custom identifier: Message-Badge-4176] (1/3):
198 bytes.
STATUS: Sending message ID 410 [custom identifier: Message-Badge-4177] (1/3):
198 bytes.
STATUS: Sending message ID 411 [custom identifier: Message-Badge-4178] (1/3):
198 bytes.
STATUS: Sending message ID 412 [custom identifier: Message-Badge-4179] (1/3):
198 bytes.
STATUS: Sending message ID 413 [custom identifier: Message-Badge-4180] (1/3):
198 bytes.
STATUS: Sending message ID 414 [custom identifier: Message-Badge-4181] (1/3):
198 bytes.
STATUS: Sending message ID 415 [custom identifier: Message-Badge-4182] (1/3):
198 bytes.
STATUS: Sending message ID 416 [custom identifier: Message-Badge-4183] (1/3):
198 bytes.
STATUS: Sending message ID 417 [custom identifier: Message-Badge-4184] (1/3):
198 bytes.
I have red another issue with the same scenario, this implies there is a bug to
address.
Pls reply as soon as u can
Original issue reported on code.google.com by [email protected]
on 28 Aug 2012 at 9:58
I've installed your library on a Debian stable system.
While locally the code worked very well (MAMP System with PHP v5.3.x), on the
server (Linux Debian PHP v5.2.6) the sandbox APNS returns a "Missing Payload"
error.
After an half of day of tests, I've located the problem: the json_encode
function takes 2nd parameter "options" from 5.3 PHP version:
http://php.net/manual/en/function.json-encode.php
Then I removed the parameter "JSON_FORCE_OBJECT" in method getPayload() of
Message object.
Now all seems works, but I don't know if my changes are ok.
I'm using only Push and Feedback functionalities.
Thank you in advance.
Simone
Original issue reported on code.google.com by [email protected]
on 8 Oct 2010 at 1:55
I was interested to use the server provider portion, but I would want it to
also listen to a local socket so that I can send messages from another process
(e.g. a server script).
Judging from the code this would require a dedicated ->runSocketServer() method
that will never return to the main script.
Let me know, impressed with the work so far! :)
Original issue reported on code.google.com by [email protected]
on 5 Jun 2012 at 3:08
The main issue with having the exceptions is a function like class_exists will
cause exceptions because of ApnsPHP_Autoload when it shouldn't.
And yes, I do know class_exists has a second parameter BUT in cases where you
want to autoload a class if it exists, but do something else if it does it will
fail.
An example of this is redbean, in combination with apns-php will cause errors
because it uses class_exists, and if it fails then it continues without using
the class.
Original issue reported on code.google.com by [email protected]
on 15 Nov 2011 at 7:03
I can't set LOCAL FILE by stream_socket_client,
Zhe issues like this
Unable to set local cert chain file `D:/apache/htdocs/ApnsPHP-r088/gcard.pem';
Check that your cafile/capath settings include details of your certificate and
its issuer in D:\apache\htdocs\ApnsPHP-r088\ApnsPHP\Abstract.php on line 348
Can You tell Why Thank you,
please take zhe answeri to my email
Original issue reported on code.google.com by [email protected]
on 15 Feb 2012 at 10:31
What steps will reproduce the problem?
1. Run in Push Server mode
2. Leave running overnight or for several hours
3. APNS will either timeout or disconnect and ApnsPHP doesn't detect it thereby
hanging the connection open.
Once the connection has been severed and ApnsPHP finds that fwrite returns 0
bytes written it only creates a warning and does not close the socket and
reconnect. Other times when fwrite actually does return bytes written but the
actual socket is hung or timed out ApnsPHP doesn't have a way to detect it and
the push is never received by the phone.
What version of the product are you using? On what operating system?
Ubuntu Linux running php 5.3.2
This is consistent and reproducible.
Original issue reported on code.google.com by [email protected]
on 2 Dec 2010 at 4:01
As attached log, the first push is sent normal, the second one got a invalid
token error, ApnsPHP disconnected and connected again. But after that every
push got a "ERROR: Unable to send message ID 1: Internal error (0 bytes written
instead of 90 bytes) (999)."
I'm not sure weather it's a bug of apns-php or something wrong with my
implementing.
My code is just like this:
$this->push->connect();
$this->push->add($data);
$this->push->send();
$this->push->add($data);
$this->push->send();
$this->push->add($data);
$this->push->send();
//...
$this->push->disconnect();
Original issue reported on code.google.com by [email protected]
on 3 Aug 2012 at 6:12
HI
I am having difficulty removing the badge once the notifications has been
viewed.
I will greatly appreciate any help.
Regards
Luben
Original issue reported on code.google.com by [email protected]
on 16 Feb 2011 at 2:23
I an getting the fetal error on sample_push.php
the Error is :
Fatal error: Uncaught exception 'ApnsPHP_Exception' with message 'Unable to
read certificate file 'server_cerificates_bundle_sandbox.pem'' in
C:\xampp\htdocs\ApnsPHP\ApnsPHP\Abstract.php:86 Stack trace: #0
C:\xampp\htdocs\ApnsPHP\sample_push.php(35): ApnsPHP_Abstract->__construct(1,
'server_cerifica...') #1 {main} thrown in
C:\xampp\htdocs\ApnsPHP\ApnsPHP\Abstract.php on line 86
please guide me to create .pm files
Original issue reported on code.google.com by [email protected]
on 25 Jul 2012 at 8:09
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.