GOOD OUTPUT (AS SAMPLE) BUT NOTIFICATION IS NOT DELIVERED

87 views
Skip to first unread message

marco.g...@gmail.com

unread,
May 6, 2014, 2:15:38 PM5/6/14
to apns...@googlegroups.com
Hi,
i'm receiving this output

Tue, 06 May 2014 20:11:31 +0200 ApnsPHP[0]: INFO: Trying ssl://gateway.sandbox.push.apple.com:2195... 
Tue, 06 May 2014 20:11:31 +0200 ApnsPHP[0]: INFO: Connected to ssl://gateway.sandbox.push.apple.com:2195
Tue, 06 May 2014 20:11:31 +0200 ApnsPHP[0]: INFO: Sending messages queue, run #1: 1 message(s) left in queue. 
Tue, 06 May 2014 20:11:31 +0200 ApnsPHP[0]: STATUS: Sending message ID 1 [custom identifier: Message-Badge-3] (1/3): 167 bytes. 
Tue, 06 May 2014 20:11:32 +0200 ApnsPHP[0]: INFO: Disconnected.

but the notification is not delivered to my device. What is the matter?
I have followed step by step the guide and i have created the certificate entrust_root_certification_authority on my mac. I'm using sample_push.php to test the class.

Thanks in advance

nick...@gmail.com

unread,
Jun 24, 2014, 7:03:34 AM6/24/14
to apns...@googlegroups.com, marco.g...@gmail.com
You are using sandbox. did you try to use
ApnsPHP_Abstract::ENVIRONMENT_PRODUCTION
instead of
ApnsPHP_Abstract::ENVIRONMENT_SANDBOX,
when creating push object ($push = new ApnsPHP_Push)

faz...@poshview.com

unread,
Oct 22, 2014, 6:52:14 PM10/22/14
to apns...@googlegroups.com, marco.g...@gmail.com, nick...@gmail.com
Thanks! It worked for me.
Reply all
Reply to author
Forward
0 new messages